示例#1
0
        public static Glsfmlookupresults BuildGlsfmlookupresultsFromRow(DataRow row)
        {
            Glsfmlookupresults entity = new Glsfmlookupresults();

            entity.memoryloc = row.IsNull("memoryloc") ? string.Empty : row.Field <string>("memoryloc");
            entity.percal    = row.IsNull("percal") ? 0 : row.Field <int>("percal");
            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 UpdateRowFromGlsfmlookupresults(ref DataRow row, Glsfmlookupresults entity)
 {
     row.SetField("memoryloc", entity.memoryloc);
     row.SetField("percal", entity.percal);
     row.SetField("userfield", entity.userfield);
 }