Yup Fixrd it i had kept Base Class Descriminator value for both classes as empty so> i changed to some dummy value emp a and derived class descriminator value as contract and permenent
I have done same as your but when i click on different-2 button then same table is showing table is not updating when i choose permanent and contract. how plz help
Followed the same steps and on the same lines i made changes using .dbml but getting a error The inheritance hierarchy rooted at 'LinQtoSqlWebApp.Employee' does not define a default.
@@arun9385 There are two entity classes created when Permanent and Contract employee entities were created. The Employee object is being type casted to either of these derived classes.
Thanks a lot kudvenkat. All your videos have been more thanhelpful to me.
you're videos are always great!
Can you tell me why it is better to have 1 table for the entity instead of 3? From what I see, having only one table introduces a lot of null values.
Dear Venkat, we are not able to save data after creating an additional table in existing database in our entity framework environment. Please HELP!
Yup Fixrd it i had kept Base Class Descriminator value for both classes as empty so> i changed to some dummy value emp a
and derived class descriminator value as contract and permenent
thnx a lot sir
I have done same as your but when i click on different-2 button then same table is showing table is not updating when i choose permanent and contract. how plz help
can you please tell me, why we have to cast the type??
Followed the same steps and on the same lines i made changes using .dbml but getting a error The inheritance hierarchy rooted at 'LinQtoSqlWebApp.Employee' does not define a default.
on including .edmx and .dbml in same project get a error that property(FirstName,LastName and Gender) is alredy defined
Nice but not able to implement the solution this way cause I'm using vsCode. Could be cool to see the generated code for each class !
Thanks
i am not understanding the code in your ConvertEmployeesForDisplay function please help me !!
Arun Nagar how your employee object contains Permanent or contract employee where it is getting value from.
@@arun9385 There are two entity classes created when Permanent and Contract employee entities were created. The Employee object is being type casted to either of these derived classes.