Example #1
0
        public static Glsfsetupfdeptlist BuildGlsfsetupfdeptlistFromRow(DataRow row)
        {
            Glsfsetupfdeptlist entity = new Glsfsetupfdeptlist();

            entity.deptno    = row.IsNull("deptno") ? 0 : row.Field <int>("deptno");
            entity.name      = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupfdeptlist(ref DataRow row, Glsfsetupfdeptlist entity)
 {
     row.SetField("deptno", entity.deptno);
     row.SetField("name", entity.name);
     row.SetField("userfield", entity.userfield);
 }