コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardfinishranges(ref DataRow row, Reptwizardfinishranges entity)
 {
     row.SetField("rangenumber", entity.rangenumber);
     row.SetField("rangename", entity.rangename);
     row.SetField("rangebegvalue", entity.rangebegvalue);
     row.SetField("rangeendvalue", entity.rangeendvalue);
 }
コード例 #2
0
        public static Reptwizardfinishranges BuildReptwizardfinishrangesFromRow(DataRow row)
        {
            Reptwizardfinishranges entity = new Reptwizardfinishranges();

            entity.rangenumber   = row.IsNull("rangenumber") ? 0 : row.Field <int>("rangenumber");
            entity.rangename     = row.IsNull("rangename") ? string.Empty : row.Field <string>("rangename");
            entity.rangebegvalue = row.IsNull("rangebegvalue") ? string.Empty : row.Field <string>("rangebegvalue");
            entity.rangeendvalue = row.IsNull("rangeendvalue") ? string.Empty : row.Field <string>("rangeendvalue");
            return(entity);
        }