I am from C# Winforms background and recently switched to ASP.NET in c#.
After working with Winforms applications along with BusinessObjects , O/R Mapping frameworks, and logical layering techniques for months, I am just wondering, should we actually use ASP.NET ubiquitous xyzDataSource controls?
We have our specific class-structures like:
And also we have our own code generators for this type of classes.
Then what are xyzDataSource controls good for?
Why don't we just use our classes' IEnumerable<T> and manually bind data?
And also don't xyzDataSource controls only applicable for XP/Agile projects?
After working with Winforms applications along with BusinessObjects , O/R Mapping frameworks, and logical layering techniques for months, I am just wondering, should we actually use ASP.NET ubiquitous xyzDataSource controls?
We have our specific class-structures like:
Code:
class MyClass : IMyClass, IPersistant
{
public int ID {get;set}
.....
.....
public int SaveOrUpdate(){}//returns the ID
public static MyClass Get(int id){}
public static IEnumerable<MyClass> Get(){}
public bool Delete(){}
}
Then what are xyzDataSource controls good for?
Why don't we just use our classes' IEnumerable<T> and manually bind data?
And also don't xyzDataSource controls only applicable for XP/Agile projects?
Comment