Why EF navigation property return null?
I have two model
1)
I have two model
1)
Hello i have 3 classes Person, UserProfile(it inherits Person) and Results, a Person can have one or more results, when i try to add i a result to a person a i get the error mentioned in the title, my classes are bellow. Any help would be appreciated.
I want to reach multiple models in one view. I have DAL folder and DbContext.
I have been googling this non stop for 2 days now and can’t find a single complete, ready to use, fully implemented t4 template that generates DataAnnotations. Do they even exist?
I am in the process of creating a Multi-Tenant asp.net application.
I feel guilty asking a question like this around here, but I’m at a loss and would appreciate some help.
I am trying to execute stored procedure from bcontext.Database.SqlQuery using EF5.
I am trying to learn MVC. I want to automatically generate the required view code as and when I add a controller. This is possible if I select the option “Controller with read/write actions and views, using Entity Framework” . However I am not using Entity Framework. How can I achieve the similar behavior without using Entity Framework? And why it is unable to automatically generate the view when I don’t use Entity Framework?
I have a Timetable model which only has two attributes at the moment, an Id and Date. It’s defined as so:
My application has been in development for about a month. I now decided to use ASP.NET Identity. I already have the view models for identity but need to create the tables. I was thinking and I am not exactly sure why I do not have the tables already if I have the view models?? I have drop create on in the initializer with my own custom context, I just need to know how to get EF to build the included Identity tables for users and roles? I looked around and none of the posted answers seem to be what I need?