Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWebsettingload(ref DataRow row, Websettingload 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("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Websettingload BuildWebsettingloadFromRow(DataRow row)
        {
            Websettingload entity = new Websettingload();

            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.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }