示例#1
0
        public static Wtesfinalupdate BuildWtesfinalupdateFromRow(DataRow row)
        {
            Wtesfinalupdate entity = new Wtesfinalupdate();

            entity.errorwtno  = row.IsNull("errorwtno") ? 0 : row.Field <int>("errorwtno");
            entity.errorwtsuf = row.IsNull("errorwtsuf") ? 0 : row.Field <int>("errorwtsuf");
            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 UpdateRowFromWtesfinalupdate(ref DataRow row, Wtesfinalupdate entity)
 {
     row.SetField("errorwtno", entity.errorwtno);
     row.SetField("errorwtsuf", entity.errorwtsuf);
     row.SetField("userfield", entity.userfield);
 }