Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWebsettingdetails(ref DataRow row, Websettingdetails entity)
 {
     row.SetField("profile", entity.profile);
     row.SetField("operator", entity.@operator);
     row.SetField("functionname", entity.functionname);
     row.SetField("screenname", entity.screenname);
     row.SetField("settingname", entity.settingname);
     row.SetField("settingvalue", entity.settingvalue);
     row.SetField("userfield", entity.userfield);
     row.SetField("userfield2", entity.userfield2);
 }
Beispiel #2
0
        public static Websettingdetails BuildWebsettingdetailsFromRow(DataRow row)
        {
            Websettingdetails entity = new Websettingdetails();

            entity.profile      = row.IsNull("profile") ? string.Empty : row.Field <string>("profile");
            entity.@operator    = row.IsNull("operator") ? string.Empty : row.Field <string>("operator");
            entity.functionname = row.IsNull("functionname") ? string.Empty : row.Field <string>("functionname");
            entity.screenname   = row.IsNull("screenname") ? string.Empty : row.Field <string>("screenname");
            entity.settingname  = row.IsNull("settingname") ? string.Empty : row.Field <string>("settingname");
            entity.settingvalue = row.IsNull("settingvalue") ? string.Empty : row.Field <string>("settingvalue");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            entity.userfield2   = row.IsNull("userfield2") ? string.Empty : row.Field <string>("userfield2");
            return(entity);
        }