Why the team doesn't use MetadataAttribute?

Feb 13, 2012 at 11:22 PM
Edited Feb 13, 2012 at 11:28 PM

Hi,

Why the team doesn't use MetadataAttribute rather than create Bussiness Layer.

http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.metadatatypeattribute.aspx

 

That feature also existing with Silverlight too.

Developer
Feb 15, 2012 at 8:50 PM

Hi,

As mentioned in the documentation:

"Mileage Stats used the DbModelBuilder approach to define the storage schema and did not apply any data annotation attributes to the data model classes. This prevented database-specific concerns from being incorporated into the data model and made it possible to change the database schema, if necessary, for other kinds of database deployments. This approach was part of the decision to create a separate data model and domain model."

Also, you can find more information about this in the following sections of the Silk documentation at MSDN:

I hope you find this useful,

Agustin Adami
http://blogs.southworks.net/aadami