So i was thinking about using Interfaces to create a somewhat better API / Design.
I want to have some control over my data when using LINQ to SQL and mapping my own classes seems unessesary and just out of order.
What i was thinking was that i'll modify the .dbml which has the logic for my database. Why? Well i was thinking, since im using the asp.net mvc for my new web app.
Having a controller taking a IEditable interface i can modify my underlying datalayer to only edit the specific properties.
The real question is, how bad is it, design-wise, changing the .dbml.designer.cs by hand? Implementing new interfaces to the partial class definitons? Suggestions on a better way?
Regards,
Filip Ekberg