コード例 #1
0
        public static Iceuloaddetailssingle BuildIceuloaddetailssingleFromRow(DataRow row)
        {
            Iceuloaddetailssingle entity = new Iceuloaddetailssingle();

            entity.wlwhsefl  = row.Field <bool>("wlwhsefl");
            entity.wlesbfl   = row.Field <bool>("wlesbfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceuloaddetailssingle(ref DataRow row, Iceuloaddetailssingle entity)
 {
     row.SetField("wlwhsefl", entity.wlwhsefl);
     row.SetField("wlesbfl", entity.wlesbfl);
     row.SetField("userfield", entity.userfield);
 }