+ 2
I am working on C# project and i am using Linq to Sql as Database i have a window form for holding a sale Invoice Detail like ac
I am working on C# project and i am using Linq to Sql as Database i have a window form for holding a sale Invoice Detail like account detail ,invoice value etc and for calculation i have created a class which containing some function to done some spacial task on the invoice and some Database function is already defined in another class which is generated by OR designer in LINQ My question is "is this a right way to using three classes to do one work" can i make my class as a child class of that class which is generated by OR designer in LINQ, or can i make my class as a child class of windows form class ? please gide me the right way
2 Réponses
+ 1
Your question is a bit hard to understand, but i think you're using classes the right way.
+ 1
do you have any code samples you can share?
sounds like you have:
* a class for input, clsForm.
* a class for data access, maybe using entity framework, dtacMyDb
* a class for calculation based on user input AND database results, which might be called business logic
So chances are this is used right but I can also envision this being done a wrong way so some code (deidentified, if necessary) would really help here