Last post Oct 12, 2010 03:06 PM by atconway
Oct 12, 2010 07:04 AM|hafiz awais|LINK
I am working on a website in layers. So in model layer i need to have properties of all table in sql server.
I need dto generator tool which can take table as input and give me dto properties as output for vb.net .
i have for C#.net but tht is only for c# not for vb so kindly give me link from where i can download.
Oct 12, 2010 03:06 PM|atconway|LINK
AutoMapper might be an option; I don;t think it auto generates the DTO but it will streamline the code for creating it from another class:
Creating DTOs using AutoMapper:
I know you just want DTOs, but an ORM like the Entity Framework can provide the creation of entities based on tables like you need:
"Together with the Entity Framework runtime, the .NET Framework version 4 includes the EDM Generator (EdmGen.exe). This command prompt utility connects to a data source and generates model and mapping files based on a one-to-one mapping between entities
Entity Framework Overview: