Exemplo n.º 1
0
 public static int Insert(tblGroup group)
 {
     var db = new dbEcustomEntities(Common.Decrypt(ConfigurationManager.ConnectionStrings["dbEcustomEntities"].ConnectionString, true));
     group.CreatedDate = CommonFactory.GetCurrentDate();
     group.ModifiedDate = CommonFactory.GetCurrentDate();
     db.AddTotblGroups(group);
     int re = db.SaveChanges();
     db.Connection.Close();
     return re;
 }