Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsprcloadcriteria(ref DataRow row, Icsprcloadcriteria entity)
 {
     row.SetField("icsprcrowid", entity.icsprcrowid.ToByteArray());
     row.SetField("recordtype", entity.recordtype);
     row.SetField("srcrowpointer", entity.srcrowpointer);
     row.SetField("restrictcd", entity.restrictcd);
     row.SetField("startdt", entity.startdt);
     row.SetField("certcode", entity.certcode);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Icsprcloadcriteria BuildIcsprcloadcriteriaFromRow(DataRow row)
        {
            Icsprcloadcriteria entity = new Icsprcloadcriteria();

            entity.icsprcrowid   = row.Field <byte[]>("icsprcrowid").ToStringEncoded();
            entity.recordtype    = row.IsNull("recordtype") ? string.Empty : row.Field <string>("recordtype");
            entity.srcrowpointer = row.IsNull("srcrowpointer") ? string.Empty : row.Field <string>("srcrowpointer");
            entity.restrictcd    = row.IsNull("restrictcd") ? string.Empty : row.Field <string>("restrictcd");
            entity.startdt       = row.Field <DateTime?>("startdt");
            entity.certcode      = row.IsNull("certcode") ? string.Empty : row.Field <string>("certcode");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }