public class CustomersEntity : BusinessEntity { public int ID { get { return (int)this.GetField("ID"); } set { this.SetField("ID", value); } } public string Name { get { return (string)this.GetField("Name"); } set { this.SetField("Name", value); } } public string Email { get { return (string)this.GetField("Email"); } set { this.SetField("Email", value); } } public override string TableName { get { return "Customers"; } } }
CustomersEntity newCustomer = new CustomersEntity(); newCustomer.Name = "John Doe"; newCustomer.Email = "[email protected]"; newCustomer.Save();MyGeneration.dOOdads is part of the MyGeneration package library, which includes a variety of different code generation tools and templates for multiple programming languages, including C#, VB.NET, Java, and more.