コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLookupcarrierresults(ref DataRow row, Lookupcarrierresults entity)
 {
     row.SetField("codeval", entity.codeval);
     row.SetField("descrip", entity.descrip);
     row.SetField("rowid-sasta", entity.rowidSasta.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Lookupcarrierresults BuildLookupcarrierresultsFromRow(DataRow row)
        {
            Lookupcarrierresults entity = new Lookupcarrierresults();

            entity.codeval    = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval");
            entity.descrip    = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.rowidSasta = row.Field <byte[]>("rowid-sasta").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }