Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSlimportdefcopy(ref DataRow row, Slimportdefcopy entity)
 {
     row.SetField("fromimptype", entity.fromimptype);
     row.SetField("toimptype", entity.toimptype);
     row.SetField("impdescrip", entity.impdescrip);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Slimportdefcopy BuildSlimportdefcopyFromRow(DataRow row)
        {
            Slimportdefcopy entity = new Slimportdefcopy();

            entity.fromimptype = row.IsNull("fromimptype") ? string.Empty : row.Field <string>("fromimptype");
            entity.toimptype   = row.IsNull("toimptype") ? string.Empty : row.Field <string>("toimptype");
            entity.impdescrip  = row.IsNull("impdescrip") ? string.Empty : row.Field <string>("impdescrip");
            entity.rowid       = row.Field <byte[]>("rowid").ToStringEncoded();
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }