Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAosystemrptitemr(ref DataRow row, Aosystemrptitemr entity)
 {
     row.SetField("iNumber", entity.iNumber);
     row.SetField("RangeNm", entity.rangeNm);
     row.SetField("EditType1", entity.editType1);
     row.SetField("RequireFl", entity.requireFl);
     row.SetField("RfLength", entity.rfLength);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Aosystemrptitemr BuildAosystemrptitemrFromRow(DataRow row)
        {
            Aosystemrptitemr entity = new Aosystemrptitemr();

            entity.iNumber   = row.IsNull("iNumber") ? 0 : row.Field <int>("iNumber");
            entity.rangeNm   = row.IsNull("RangeNm") ? string.Empty : row.Field <string>("RangeNm");
            entity.editType1 = row.IsNull("EditType1") ? string.Empty : row.Field <string>("EditType1");
            entity.requireFl = row.Field <bool>("RequireFl");
            entity.rfLength  = row.IsNull("RfLength") ? 0 : row.Field <int>("RfLength");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }