Exemple #1
0
        public static Glsfsetupsdeptlist BuildGlsfsetupsdeptlistFromRow(DataRow row)
        {
            Glsfsetupsdeptlist entity = new Glsfsetupsdeptlist();

            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);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupsdeptlist(ref DataRow row, Glsfsetupsdeptlist entity)
 {
     row.SetField("deptno", entity.deptno);
     row.SetField("name", entity.name);
     row.SetField("userfield", entity.userfield);
 }