Exemple #1
0
        public static Wtsaload BuildWtsaloadFromRow(DataRow row)
        {
            Wtsaload entity = new Wtsaload();

            entity.wtsarowid         = row.Field <byte[]>("wtsarowid").ToStringEncoded();
            entity.wtsaloaduserfield = row.IsNull("wtsaloaduserfield") ? string.Empty : row.Field <string>("wtsaloaduserfield");
            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 UpdateRowFromWtsaload(ref DataRow row, Wtsaload entity)
 {
     row.SetField("wtsarowid", entity.wtsarowid.ToByteArray());
     row.SetField("wtsaloaduserfield", entity.wtsaloaduserfield);
     row.SetField("userfield", entity.userfield);
 }