views:

36

answers:

1

I’m working on a large and a high volume transactional enterprise application which has been designed using n-tire application architecture .And it was developed in the .NET platform utilizing C#,VB.NEt, Framework 3.5, ObjectDataSources, DataSet, WCF, asp.net update panel, JavaScript ,JSON, 3rd Party tools. The application is supposed to accomplish a really scalable / easily maintained / robust application / integrations, and to make sure that my services are created using a format that can be understood by other systems.

The problem is, this application is about 70% complete but now I was wondering if the following would cause us future issues,

I’m using a DataSet and a DataTable to (get /set) the data (form /to) the stored procedure in the database using the ObjectDataSources and was wondering if this would prevent my application from achieving the above goals. Actually, I am not anti-OO. I write lots of classes for different purposes, but I didn’t use the entity objects(custom business entities) instead of the previous way because I have a large database that may contain 50 tables and I was just afraid to create entities for each table and then in the future if I need to change the schema of the database, it might cause a huge affect on the application ?

+3  A: 

If you use Entity Framework, your entity model doesn't need to match your database schema one to one. That should allow you to keep your entity model stable as the database changes.

There are several issues with returning DataSet from a service. Among others, only a .NET client will understand it. There are others, including the fact that it is wasteful of space and usually includes the schema when it is serialized.

John Saunders
Is the EF instead of custom business entitie ??and should I change the application to use the EF, I was just afraid to Lost the previous work,,,,
kathy
@kathy: EF can provide the basis for your custom business entities. It will create a basic class with the appropriate properties, and you can add business logic through partial classes. I recommend you look into EF and perhaps try it out with a small subset of your database. Then see if it's easy enough to use. Finally, see how hard it would be to switch the existing code to EF.
John Saunders