Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCoreallocationupdate(ref DataRow row, Coreallocationupdate entity)
 {
     row.SetField("proofok", entity.proofok);
     row.SetField("forceserials", entity.forceserials);
     row.SetField("retforceserlot", entity.retforceserlot);
     row.SetField("retforcelinelist", entity.retforcelinelist);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Coreallocationupdate BuildCoreallocationupdateFromRow(DataRow row)
        {
            Coreallocationupdate entity = new Coreallocationupdate();

            entity.proofok          = row.Field <bool>("proofok");
            entity.forceserials     = row.Field <bool>("forceserials");
            entity.retforceserlot   = row.Field <bool>("retforceserlot");
            entity.retforcelinelist = row.IsNull("retforcelinelist") ? string.Empty : row.Field <string>("retforcelinelist");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }