Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my code snippet i have seen the below line


C#
public interface IDbSet<tentity> : IQueryable<tentity>, IEnumerable<tentity>, IQueryable, IEnumerable where TEntity : class


what is the purpose of this could you please tell me briefly what is the advantage of this.

[edit]Code block added - OriginalGriff[/edit]
Posted
Updated 20-May-14 2:34am
v2

It's declaring a new interface which implements four existing interfaces, and which insists that the Generic parameter that it is used with must be a class: it can't be another interface or a struct.

If you don't understand interfaces, then you need to start here: http://msdn.microsoft.com/en-us/library/ms173156.aspx[^] - it's a bit too big to discuss in a small textbox!
 
Share this answer
 
v2
Probably inside interface there are methods that use TEntity class.I can make a prediction that contains return value and/or arguments methods which use something IEnumerable like collection (
C#
new List<myclass>
) and something related to linq as well.
Hope helpful.
Hi.
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900