Пример #1
0
        public static Invdiscidlist BuildInvdiscidlistFromRow(DataRow row)
        {
            Invdiscidlist entity = new Invdiscidlist();

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