public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound) { switch (strPropertyName.ToLower()) { case "trackid": // Int return(TrackId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "sessionvoting": // Bit return(SessionVoting.ToString()); case "backgroundcolor": // NVarChar if (BackgroundColor == null) { return(""); } ; return(PropertyAccess.FormatString(BackgroundColor, strFormat)); case "sort": // Int if (Sort == null) { return(""); } ; return(((int)Sort).ToString(strFormat, formatProvider)); case "title": // NVarChar if (Title == null) { return(""); } ; return(PropertyAccess.FormatString(Title, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); default: propertyNotFound = true; break; } return(Null.NullString); }
public virtual string GetProperty(string strPropertyName, string strFormat, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound) { switch (strPropertyName.ToLower()) { case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "portalid": // Int return(PortalId.ToString(strFormat, formatProvider)); case "name": // NVarChar return(PropertyAccess.FormatString(Name, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "startdate": // DateTime if (StartDate == null) { return(""); } ; return(((DateTime)StartDate).ToString(strFormat, formatProvider)); case "enddate": // DateTime if (EndDate == null) { return(""); } ; return(((DateTime)EndDate).ToString(strFormat, formatProvider)); case "maxcapacity": // Int if (MaxCapacity == null) { return(""); } ; return(((int)MaxCapacity).ToString(strFormat, formatProvider)); case "sessionvoting": // Bit return(SessionVoting.ToString()); case "attendeerole": // Int return(AttendeeRole.ToString(strFormat, formatProvider)); case "speakerrole": // Int return(SpeakerRole.ToString(strFormat, formatProvider)); case "location": // NVarChar if (Location == null) { return(""); } ; return(PropertyAccess.FormatString(Location, strFormat)); case "url": // NVarChar if (Url == null) { return(""); } ; return(PropertyAccess.FormatString(Url, strFormat)); case "submittedsessionspublic": // Bit return(SubmittedSessionsPublic.ToString()); case "timezoneid": // VarChar if (TimeZoneId == null) { return(""); } ; return(PropertyAccess.FormatString(TimeZoneId, strFormat)); case "mqttbroker": // VarChar if (MqttBroker == null) { return(""); } ; return(PropertyAccess.FormatString(MqttBroker, strFormat)); case "mqttbrokerusername": // NVarChar if (MqttBrokerUsername == null) { return(""); } ; return(PropertyAccess.FormatString(MqttBrokerUsername, strFormat)); case "mqttbrokerpassword": // NVarChar if (MqttBrokerPassword == null) { return(""); } ; return(PropertyAccess.FormatString(MqttBrokerPassword, strFormat)); case "basetopicpath": // NVarChar if (BaseTopicPath == null) { return(""); } ; return(PropertyAccess.FormatString(BaseTopicPath, strFormat)); default: propertyNotFound = true; break; } return(Null.NullString); }