Exemplo n.º 1
0
        public static Glsfsetupfdeptno BuildGlsfsetupfdeptnoFromRow(DataRow row)
        {
            Glsfsetupfdeptno entity = new Glsfsetupfdeptno();

            entity.itemno    = row.IsNull("itemno") ? 0 : row.Field <int>("itemno");
            entity.deptno    = row.IsNull("deptno") ? 0 : row.Field <int>("deptno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupfdeptno(ref DataRow row, Glsfsetupfdeptno entity)
 {
     row.SetField("itemno", entity.itemno);
     row.SetField("deptno", entity.deptno);
     row.SetField("userfield", entity.userfield);
 }