예제 #1
0
        public static Glsfsetupfdivno BuildGlsfsetupfdivnoFromRow(DataRow row)
        {
            Glsfsetupfdivno entity = new Glsfsetupfdivno();

            entity.itemno    = row.IsNull("itemno") ? 0 : row.Field <int>("itemno");
            entity.divno     = row.IsNull("divno") ? 0 : row.Field <int>("divno");
            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 UpdateRowFromGlsfsetupfdivno(ref DataRow row, Glsfsetupfdivno entity)
 {
     row.SetField("itemno", entity.itemno);
     row.SetField("divno", entity.divno);
     row.SetField("userfield", entity.userfield);
 }