Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOpervalidate(ref DataRow row, Opervalidate entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("operinit", entity.operinit);
     row.SetField("password", entity.password);
     row.SetField("tenderty", entity.tenderty);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Opervalidate BuildOpervalidateFromRow(DataRow row)
        {
            Opervalidate entity = new Opervalidate();

            entity.cono      = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.operinit  = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.password  = row.IsNull("password") ? string.Empty : row.Field <string>("password");
            entity.tenderty  = row.IsNull("tenderty") ? string.Empty : row.Field <string>("tenderty");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }