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 "userid": // Int return(UserId.ToString(strFormat, formatProvider)); case "status": // Int return(Status.ToString(strFormat, formatProvider)); case "receivenotifications": // Bit return(ReceiveNotifications.ToString()); case "company": // NVarChar if (Company == null) { return(""); } ; return(PropertyAccess.FormatString(Company, 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 "commentid": // Int return(CommentId.ToString(strFormat, formatProvider)); case "userid": // Int return(UserId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "sessionid": // Int return(SessionId.ToString(strFormat, formatProvider)); case "datime": // DateTime return(Datime.ToString(strFormat, formatProvider)); case "remarks": // NVarCharMax return(PropertyAccess.FormatString(Remarks, strFormat)); case "visibility": // Int return(Visibility.ToString(strFormat, formatProvider)); 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 "apikey": // VarChar return(PropertyAccess.FormatString(ApiKey, strFormat)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "expires": // DateTime if (Expires == null) { return(""); } ; return(((DateTime)Expires).ToString(strFormat, formatProvider)); case "createdbyuserid": // Int return(CreatedByUserID.ToString(strFormat, formatProvider)); case "createdondate": // DateTime return(CreatedOnDate.ToString(strFormat, formatProvider)); 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 "slotid": // Int return(SlotId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "start": // Time return(Start.ToString(strFormat, formatProvider)); case "durationmins": // Int return(DurationMins.ToString(strFormat, formatProvider)); case "slottype": // Int return(SlotType.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)); case "daynr": // Int if (DayNr == null) { return(""); } ; return(((int)DayNr).ToString(strFormat, formatProvider)); case "locationid": // Int if (LocationId == null) { return(""); } ; return(((int)LocationId).ToString(strFormat, formatProvider)); 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 "locationid": // Int return(LocationId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "name": // NVarChar if (Name == null) { return(""); } ; return(PropertyAccess.FormatString(Name, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "capacity": // Int if (Capacity == null) { return(""); } ; return(((int)Capacity).ToString(strFormat, formatProvider)); case "sort": // Int if (Sort == null) { return(""); } ; return(((int)Sort).ToString(strFormat, formatProvider)); case "backgroundcolor": // NVarChar if (BackgroundColor == null) { return(""); } ; return(PropertyAccess.FormatString(BackgroundColor, 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 "userid": // Int return(UserId.ToString(strFormat, formatProvider)); case "company": // NVarChar if (Company == null) { return(""); } ; return(PropertyAccess.FormatString(Company, strFormat)); case "sort": // Int if (Sort == null) { return(""); } ; return(((int)Sort).ToString(strFormat, formatProvider)); case "url": // NVarChar if (Url == null) { return(""); } ; return(PropertyAccess.FormatString(Url, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "descriptionshort": // NVarCharMax if (DescriptionShort == null) { return(""); } ; return(PropertyAccess.FormatString(DescriptionShort, 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 "sponsorid": // Int return(SponsorId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "name": // NVarChar return(PropertyAccess.FormatString(Name, strFormat)); case "url": // VarChar if (Url == null) { return(""); } ; return(PropertyAccess.FormatString(Url, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "vieworder": // Int return(ViewOrder.ToString(strFormat, formatProvider)); case "sponsorlevel": // NVarChar if (SponsorLevel == null) { return(""); } ; return(PropertyAccess.FormatString(SponsorLevel, 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 "tagid": // Int return(TagId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "tagname": // NVarChar return(PropertyAccess.FormatString(TagName, strFormat)); default: propertyNotFound = true; break; } return(Null.NullString); }
public override 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 "title": // NVarChar if (Title == null) { return(""); } ; return(PropertyAccess.FormatString(Title, strFormat)); case "tagname": // NVarChar return(PropertyAccess.FormatString(TagName, strFormat)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); default: return(base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound)); } }
public override void SerializeTo(IDictionary <string, string> serializableInfo) { serializableInfo.Add("ConferenceId", ConferenceId.ToString()); serializableInfo.Add("ReservationId", ReservationId.ToString()); }
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 "sessionid": // Int return(SessionId.ToString(strFormat, formatProvider)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "locationid": // Int if (LocationId == null) { return(""); } ; return(((int)LocationId).ToString(strFormat, formatProvider)); case "level": // NVarChar if (Level == null) { return(""); } ; return(PropertyAccess.FormatString(Level, strFormat)); case "sort": // Int if (Sort == null) { return(""); } ; return(((int)Sort).ToString(strFormat, formatProvider)); case "capacity": // Int if (Capacity == null) { return(""); } ; return(((int)Capacity).ToString(strFormat, formatProvider)); case "slotid": // Int return(SlotId.ToString(strFormat, formatProvider)); case "title": // NVarChar if (Title == null) { return(""); } ; return(PropertyAccess.FormatString(Title, strFormat)); case "subtitle": // NVarChar if (SubTitle == null) { return(""); } ; return(PropertyAccess.FormatString(SubTitle, strFormat)); case "description": // NVarCharMax if (Description == null) { return(""); } ; return(PropertyAccess.FormatString(Description, strFormat)); case "status": // Int if (Status == null) { return(""); } ; return(((int)Status).ToString(strFormat, formatProvider)); case "isplenary": // Bit return(IsPlenary.ToString()); case "daynr": // Int return(DayNr.ToString(strFormat, formatProvider)); case "notes": // NVarCharMax if (Notes == null) { return(""); } ; return(PropertyAccess.FormatString(Notes, strFormat)); case "trackid": // Int if (TrackId == null) { return(""); } ; return(((int)TrackId).ToString(strFormat, formatProvider)); 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); }
public override 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 "title": // NVarChar if (Title == null) { return(""); } ; return(PropertyAccess.FormatString(Title, strFormat)); case "conferenceid": // Int return(ConferenceId.ToString(strFormat, formatProvider)); case "sessiondateandtime": // DateTime if (SessionDateAndTime == null) { return(""); } ; return(((DateTime)SessionDateAndTime).ToString(strFormat, formatProvider)); case "sessionend": // DateTime if (SessionEnd == null) { return(""); } ; return(((DateTime)SessionEnd).ToString(strFormat, formatProvider)); case "displayname": // NVarChar return(PropertyAccess.FormatString(DisplayName, strFormat)); case "email": // NVarChar if (Email == null) { return(""); } ; return(PropertyAccess.FormatString(Email, strFormat)); case "company": // NVarChar if (Company == null) { return(""); } ; return(PropertyAccess.FormatString(Company, strFormat)); case "attcode": // NVarChar if (AttCode == null) { return(""); } ; return(PropertyAccess.FormatString(AttCode, strFormat)); case "sessionattendeename": // NVarChar return(PropertyAccess.FormatString(SessionAttendeeName, strFormat)); case "reviewstars": // Int return(ReviewStars.ToString(strFormat, formatProvider)); case "createdbyuser": // NVarChar if (CreatedByUser == null) { return(""); } ; return(PropertyAccess.FormatString(CreatedByUser, strFormat)); case "lastmodifiedbyuser": // NVarChar if (LastModifiedByUser == null) { return(""); } ; return(PropertyAccess.FormatString(LastModifiedByUser, strFormat)); default: return(base.GetProperty(strPropertyName, strFormat, formatProvider, accessingUser, accessLevel, ref propertyNotFound)); } }