How to add Name space on view(.cshtml page) in new plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 年 前
Hi All,

I have create new plugin but i am not able to add namespace on view page.

Please help me. how i'll do that task.

I have add all references file with using add reference as below..


    Nop.Core.dll
    Nop.Data.dll
    Nop.Services.dll
    Nop.Web.Framework.dll
    EntityFramework.dll
    System.Data.Entity.dll
    System.Web.dll
    System.Web.Mvc.dll
    Autofac.dll
    Autofac.Configuration.dll
    Autofac.Integration.Mvc.dll
etc. but i am not able add below code


@using Nop.Web.Framework;
@using Telerik.Web.Mvc.UI;




@using (Html.BeginForm())
{
    @Html.Telerik().TabStrip().Name("googlebase-configure").Items(x =>
    {
        x.Add().Text(T("Plugins.Feed.Froogle.General").Text).Content(TabGeneral().ToHtmlString()).Selected(true);
        x.Add().Text(T("Plugins.Feed.Froogle.Override").Text).Content(TabOverride().ToHtmlString());
    })
}


because it's showing

Error  5  The name 'Html' does not exist in the current context  
Error  4  The name 'Layout' does not exist in the current context  
Error  9  The name 'T' does not exist in the current context  
Error  8  The name 'TabGeneral' does not exist in the current context  

Error  3  The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)  

Please help me.
I am waiting here....



Regards,
Abdhesh
9999208994
10 年 前
I have add reference below step :

Right click on reference folder > Add reference > browse dll file form location.

But it not resolve.

any other way to add reference in our new plugin.

Thanks in advance.

Regards,
Abdhesh
10 年 前
Please help me.. what is missing here....
10 年 前
You need a web.config file.  Copy one from one of the other plugins.

P.S.  You probably don't need those using's

P.P.S. When adding references, be sure to mark them as Copy Local = False
10 年 前
OK Thanks

But now some issue while add in some field in database.

error Message is : Your "My Class name" is not exists in current entity.
10 年 前
i am getting "The entity type (NAME) is not part of the model for the current context" error while adding in new table using plugin.
10 年 前
abdheshtech1 wrote:
i am getting "The entity type (NAME) is not part of the model for the current context" error while adding in new table using plugin.


Please Register Your domain class in the Dependency Registration.
For reference you can see DependencyRegistrar.cs in Nop.Plugin.Feed.Froogle plugin line number 46.
10 年 前
Hi Dilav Shah,

Thanks resolve it.
10 年 前
abdheshtech1 wrote:
Hi Dilav Shah,

Thanks resolve it.


no problem. Enjoy coding :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.