开发者

Can the MS Enterprise Library build object model and code from a database?

开发者 https://www.devze.com 2022-12-14 01:09 出处:网络
I have just encountered the MS Enterprise Application Library 3.1 in an application I need to support/enhance. I am trying to get up to speed quickly on Microsoft.Practices.EnterpriseLibrary.Data in p

I have just encountered the MS Enterprise Application Library 3.1 in an application I need to support/enhance. I am trying to get up to speed quickly on Microsoft.Practices.EnterpriseLibrary.Data in particular.

The doc on this is quite good but the reading is vast开发者_如何学C and I am curious about one aspect of this:

Years ago when .Net 1.0 first came out, there was a tool described in a book called: ".Net Enterprise Development in VB.NET: From Design to Development" by Matthew Reynolds, Karli Watson, et al.

This tool was called the WEO Object Builder (Wrox Enterprise Objects) and as I recall it had a code generation facility where I could point this "object builder" program at a SQL Server database and it would generate an object model (classes corresponding to tables but with several variations and options available too).

This current project I've been handed uses:

using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;

..and some of the doc reminds me of this old WEO thing.

Enterprise Library has an Microsoft.Practices.ObjectBuilder and Microsoft.Practices.ObjectBuilder2 but I don't think these do the same sort of thing as the old WEO thing did.

Is there a "modern-day" tool which builds "business objects" from a database schema? I've heard about the Entity Framework but not investigated at all?


Entity Framework and NHibernate are a couple of Object Relational Mappers (ORMs).

Enterprise Library doesn't have ORM capabilities.

0

精彩评论

暂无评论...
验证码 换一张
取 消