Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "legion123"

thank you. i will try it.

i use EntityFramework and Module-Zero example

i hope this class

[Table("Tasks")]
public class Task : Entity<long>
{
    public Task()
    {
    }

    public virtual string taskName { get; set; }

   // module-zero user class EF automatic link
    public virtual User usr { get; set; }

    [ForeignKey("UserId")]
    public virtual long? UserId { get; set; }
}

but An Error occured [The property 'UserId' cannot be configured as a navigation property. The property must be a valid entity type and the property should have a non-abstract getter and setter. For collection properties the type must implement ICollection<T> where T is a valid entity type.]

what can i do ? thank you.

sorry, i lose description.

i use Firefox 46.0.1 boilerplate v0.9.1.0 module zero same version (v0.9.1.0)

thank you.

i use asp.net module zero sample. when New User Create button clieck , error occured. so i can not create New User.

error is : [TypeError: _$form.serializeFormToObject is not a function] in file [MyApp/Views/Users/index.js]

thank you very much. i changed my sample souces. problem is cleared . but i found another same case.

i change these souce codes.

file: _LanguageSelection.cshtml

@using MyAbp.Web.Views @model MyAbp.Web.Models.Layout.LanguageSelectionViewModel

@{ var calculateLangMenuUrl = new Func<string, string>((url) => { return ApplicationPath + url; }); }

<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="@Model.CurrentLanguage.Icon"></i> <span>@Model.CurrentLanguage.DisplayName</span> <b class="caret"></b> </a> <ul class="dropdown-menu"> @foreach (var language in Model.Languages) { if (language.Name != Model.CurrentLanguage.Name) { <li><a href="@calculateLangMenuUrl("AbpLocalization/ChangeCulture?cultureName")=@(language.Name)&returnUrl=@(Request.Url)"><i class="@language.Icon"></i> @language.DisplayName</a></li> } } </ul> </li>

i found it.

MyAbpZeroNavigationProvider.cs file is there


public class MyAbpZeroNavigationProvider : NavigationProvider
{
    public override void SetNavigation(INavigationProviderContext context)
    {
        context.Manager.MainMenu
            .AddItem(
                new MenuItemDefinition(
                    "Home",
                    L("HomePage"),
                    url: "/",                                           // <----- i wish this url is "/" + "Virtual ApplicationPath"  :( 
                    icon: "fa fa-home",
                    requiresAuthentication: true

thank you very much. i soon try it. :D

i deploy ABP sample Web site to IIS(Default Web Site)

sample : <a class="postlink" href="http://localhost/MyAbp/">http://localhost/MyAbp/</a>

i clicked Menu (About) page goto <a class="postlink" href="http://localhost/About/">http://localhost/About/</a>

but i hope page <a class="postlink" href="http://localhost/MyAbp/About">http://localhost/MyAbp/About</a>

why sitename is cleared?

I deploied ABP project. I use IIS 7.0 but WebSite does not work.

I hope <a class="postlink" href="http://localhost/WebSiteName/xxxxx">http://localhost/WebSiteName/xxxxx</a>

but <a class="postlink" href="http://localhost/xxxxx">http://localhost/xxxxx</a> SiteName was cleared.

Why?

Showing 1 to 9 of 9 entries