예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasogetoperlistresults(ref DataRow row, Sasogetoperlistresults entity)
 {
     row.SetField("operinit", entity.operinit);
     row.SetField("name", entity.name);
     row.SetField("whse", entity.whse);
     row.SetField("profile", entity.profile);
     row.SetField("sysadminfl", entity.sysadminfl);
     row.SetField("dept", entity.dept);
     row.SetField("jobtitle", entity.jobtitle);
     row.SetField("sasoo-rowid", entity.sasooRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Sasogetoperlistresults BuildSasogetoperlistresultsFromRow(DataRow row)
        {
            Sasogetoperlistresults entity = new Sasogetoperlistresults();

            entity.operinit   = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.name       = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.whse       = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.profile    = row.IsNull("profile") ? string.Empty : row.Field <string>("profile");
            entity.sysadminfl = row.Field <bool>("sysadminfl");
            entity.dept       = row.IsNull("dept") ? string.Empty : row.Field <string>("dept");
            entity.jobtitle   = row.IsNull("jobtitle") ? string.Empty : row.Field <string>("jobtitle");
            entity.sasooRowid = row.Field <byte[]>("sasoo-rowid").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }