Create Custom .dbml file
-
Hi I want the table of a datacontext in the project inherit my base table calss.for it purpose,I want create custom the dbml files,which it be like VS2008,I can drag and drop table to the my dbml file and it inhrerits my calss. Please help me for it. Thanks.
-
Hi I want the table of a datacontext in the project inherit my base table calss.for it purpose,I want create custom the dbml files,which it be like VS2008,I can drag and drop table to the my dbml file and it inhrerits my calss. Please help me for it. Thanks.
Since DataContext already inherits from System.Object, you can't force the inheritance some other way. Perhaps if you describe what you're trying to do, we'll be able to help you.
Life, family, faith: Give me a visit. From my latest post: "How differently the psalmist saw it! How blessed -- how truly happy with real joy! -- is the man who delights in the Law of the Lord." Judah Himango
-
Since DataContext already inherits from System.Object, you can't force the inheritance some other way. Perhaps if you describe what you're trying to do, we'll be able to help you.
Life, family, faith: Give me a visit. From my latest post: "How differently the psalmist saw it! How blessed -- how truly happy with real joy! -- is the man who delights in the Law of the Lord." Judah Himango
I want design data access layer for the medium application,I want use linq to sql for it.I need which genarate code for entities of application.for that i want inherite the class of a datacontext from my class. User interface is important for that. Please help for it or give me a suoltion Thanks Judah.
-
I want design data access layer for the medium application,I want use linq to sql for it.I need which genarate code for entities of application.for that i want inherite the class of a datacontext from my class. User interface is important for that. Please help for it or give me a suoltion Thanks Judah.
reza toorani wrote:
I want design data access layer for the medium application,I want use linq to sql for it.
Ok, that works.
reza toorani wrote:
I need which genarate code for entities of application.
The Visual Studio designer will generate classes for objects stored in your tables, if that's what you mean. If you don't have Visual Studio, the SqlMetal[^] tool inside the .NET framework will do it.
reza toorani wrote:
for that i want inherite the class of a datacontext from my class.
Again, this is not possible. I do not understand why you need to do this.
reza toorani wrote:
User interface is important for that.
User interface for your application? Or for generating the entities?