I used ASP.NET Zero Power Tools to create a new Geography Entity. I'm able to change values in regular Text input boxes and save those fields.
Then I created a DB Table to store all available Countries to be able to select from a Dropdownlist. I am able to get the available countries to show up in the dropdown list. However, when I choose a country and hit "Save" it does not save the selected country to the DB.
[StringLength(ProfileConsts.MaxCountryLength, MinimumLength = ProfileConsts.MinCountryLength)]
public virtual string Country { get; set; }
[StringLength(ProfileConsts.MaxGeoCountryLength, MinimumLength = ProfileConsts.MinGeoCountryLength)]
public virtual string GeoCountry { get; set; }
This will save changes fine
<input class="form-control" id="Geography_Country" value="@Model.Geography.Country" type="text" name="country"/>
This does not save selected value
@Html.DropDownList("Geography_GeoCountry", new SelectList(Model.countrylist, "CountryId", "GeoCountry", Model.Geography.GeoCountry), "Select Country from List", new { @class = "form-control" })
Is there a JQuery Function I need to execute, to update the DTO? Any help would be much appreciated.
Using Muli-Tenant
I make a Role with everything disabled except the "Users" Section is checked.
Then I Create a new User with that Role.
When I log into the new user and then Navigate to Administration -> Users it pops up this error
I know I can enable the Dynamic Entity Properties and would not get this error. But I would prefer to not have the menu option "Dynamic Properties".