Changes are an inevitable part of any project. The LINQ to SQL designer in Visual Studio provides a lot of support for manipulating entities, but does NOT make it easy when a refactor is required. The LINQ to SQL designer requires that the entity be dropped and recreated to generate the necessary updates. When the entity is dropped, any updates made for that entity are also lost and now must be re-created. This is time consuming, tedious and results in work being done over and over again. With PLINQO, make changes, right-click, generate, DONE! PLINQO makes it that easy. PLINQO supports syncing the database with the dbml while preserving any manual dbml updates.
[CodeSmith.Data.Audit.Audit] private class Metadata { // Only Attributes in the class will be preserved. public int Id { get; set; } [Required] public string UserName { get; set; } [Required] [DataType(System.ComponentModel.DataAnnotations.DataType.Password)] public string Password { get; set; } [DataType(System.ComponentModel.DataAnnotations.DataType.EmailAddress)] public string EmailAddress { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public System.Data.Linq.Binary Avatar { get; set; } [Now(EntityState.New)] [CodeSmith.Data.Audit.NotAudited] public System.DateTime CreatedDate { get; set; } [Now(EntityState.Dirty)] [CodeSmith.Data.Audit.NotAudited] public System.DateTime ModifiedDate { get; set; } public System.Data.Linq.Binary RowVersion { get; set; } public EntitySet<Task> AssignedTaskList { get; set; } public EntitySet<Task> CreatedTaskList { get; set; } public EntitySet<UserRole> UserRoleList { get; set; }}