Пример #1
0
        public static Glsfsetupsdivno BuildGlsfsetupsdivnoFromRow(DataRow row)
        {
            Glsfsetupsdivno entity = new Glsfsetupsdivno();

            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 UpdateRowFromGlsfsetupsdivno(ref DataRow row, Glsfsetupsdivno entity)
 {
     row.SetField("divno", entity.divno);
     row.SetField("userfield", entity.userfield);
 }