TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
357
120.6k
EF and Code First
Apr 30 2013 7:16 AM
Hi,
I require an understanding on the Map Method API located in the Entity Framework Namespace.
The Method signature is:-
public EntityTypeConfiguration<TEntityType> Map<TDerived>(
Action<EntityMappingConfiguration<TDerived>> derivedTypeMapConfigurationAction
where TDerived : class, TEntityType)
My question is...
Why does the where constraint need to have the TDerived generic placeholder telling it that it must derive from a class (reference type) AND to be of type TEntityType?
I commented out the where constraint and it still seemed to work fine?
Regards
Reply
Answers (
3
)
Minimize button in Outlook Compose window is Disable.
C# to Open Existing Excel Workbook