Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is the constructor:

C#
public Generic (Entities dbContext) : base(dbContext)
{
}


the actualy code is :
C#
Generic ARTICLE_RepositoryService = new Generic (context);


i would like something to generate this generic class automaticly a mean so:
C#
string c= "Customer";
Generic<cl> c = new Generic<cl>(dbcontext)

string cc= "ARTICLE";
Generic <cc> c1 = new Generic <cl> (dbcontext);
Posted
Updated 25-Mar-15 6:11am
v4
Comments
OriginalGriff 25-Mar-15 7:28am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
BillWoodruff 25-Mar-15 11:17am    
Without seeing the code, and seeing the Constructor in particular, I don't think we can assist you.
Afzaal Ahmad Zeeshan 25-Mar-15 12:09pm    
Or else you can create a generic handler (function) for that generic type.
AbassiOmar 25-Mar-15 12:40pm    
i trie but i can'y do that if any body have any idea
Sergey Alexandrovich Kryukov 25-Mar-15 13:27pm    
Idea on what? First, you need to explain what you are trying to achieve and why.
—SA

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