Beispiel #1
0
        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 "componentid": // Int
                return(ComponentId.ToString(strFormat, formatProvider));

            case "moduleid": // Int
                return(ModuleId.ToString(strFormat, formatProvider));

            case "componentname": // NVarChar
                return(PropertyAccess.FormatString(ComponentName, strFormat));

            case "latestversion": // VarChar
                return(PropertyAccess.FormatString(LatestVersion, strFormat));

            case "description": // NVarCharMax
                if (Description == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(Description, strFormat));

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }
Beispiel #2
0
        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 "flightid": // Int
                return(FlightId.ToString(strFormat, formatProvider));

            case "beaconid": // Int
                return(BeaconId.ToString(strFormat, formatProvider));

            case "passeddistance": // Int
                if (PassedDistance == null)
                {
                    return("");
                }
                ;
                return(((int)PassedDistance).ToString(strFormat, formatProvider));

            case "passorder": // Int
                return(PassOrder.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 "referenceid": // Int
                return(ReferenceId.ToString(strFormat, formatProvider));

            case "codeblockid": // Int
                return(CodeBlockId.ToString(strFormat, formatProvider));

            case "fullname": // VarChar
                return(PropertyAccess.FormatString(FullName, strFormat));

            case "offset": // Int
                return(Offset.ToString(strFormat, formatProvider));

            case "referencedmemberid": // Int
                if (ReferencedMemberId == null)
                {
                    return("");
                }
                ;
                return(((int)ReferencedMemberId).ToString(strFormat, formatProvider));

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }
Beispiel #4
0
        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 "dependencyid": // Int
                return(DependencyId.ToString(strFormat, formatProvider));

            case "componenthistoryid": // Int
                return(ComponentHistoryId.ToString(strFormat, formatProvider));

            case "fullname": // VarChar
                return(PropertyAccess.FormatString(FullName, strFormat));

            case "version": // VarChar
                return(PropertyAccess.FormatString(Version, strFormat));

            case "versionnormalized": // VarChar
                return(PropertyAccess.FormatString(VersionNormalized, strFormat));

            case "name": // VarChar
                return(PropertyAccess.FormatString(Name, strFormat));

            case "depcomponenthistoryid": // Int
                if (DepComponentHistoryId == null)
                {
                    return("");
                }
                ;
                return(((int)DepComponentHistoryId).ToString(strFormat, formatProvider));

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }
Beispiel #5
0
        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 "userid": // Int
                return(UserId.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 "sessionid": // Int
                return(SessionId.ToString(strFormat, formatProvider));

            case "userid": // Int
                return(UserId.ToString(strFormat, formatProvider));

            case "stars": // Int
                return(Stars.ToString(strFormat, formatProvider));

            case "review": // NVarCharMax
                if (Review == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(Review, 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);
        }
Beispiel #8
0
        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);
        }
Beispiel #9
0
        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 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 "sessionresourceid": // Int
                return(SessionResourceId.ToString(strFormat, formatProvider));

            case "sessionid": // Int
                return(SessionId.ToString(strFormat, formatProvider));

            case "resourcelink": // NVarChar
                return(PropertyAccess.FormatString(ResourceLink, strFormat));

            case "resourcedescription": // NVarChar
                if (ResourceDescription == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(ResourceDescription, strFormat));

            case "resourcetype": // Int
                return(ResourceType.ToString(strFormat, formatProvider));

            case "visibility": // Int
                return(Visibility.ToString(strFormat, formatProvider));

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }
Beispiel #11
0
        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 "conferencename": // NVarChar
                return(PropertyAccess.FormatString(ConferenceName, 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 "nrsessions": // Int
                if (NrSessions == null)
                {
                    return("");
                }
                ;
                return(((int)NrSessions).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));
            }
        }
        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));
            }
        }
Beispiel #13
0
        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 "nrattendees": // Int
                if (NrAttendees == null)
                {
                    return("");
                }
                ;
                return(((int)NrAttendees).ToString(strFormat, formatProvider));

            case "nrspeakers": // Int
                if (NrSpeakers == null)
                {
                    return("");
                }
                ;
                return(((int)NrSpeakers).ToString(strFormat, formatProvider));

            case "nrlocations": // Int
                if (NrLocations == null)
                {
                    return("");
                }
                ;
                return(((int)NrLocations).ToString(strFormat, formatProvider));

            case "nrtracks": // Int
                if (NrTracks == null)
                {
                    return("");
                }
                ;
                return(((int)NrTracks).ToString(strFormat, formatProvider));

            case "nrsessions": // Int
                if (NrSessions == null)
                {
                    return("");
                }
                ;
                return(((int)NrSessions).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));
            }
        }
 public string GetProperty(string propertyName, string format, System.Globalization.CultureInfo formatProvider, DotNetNuke.Entities.Users.UserInfo accessingUser, DotNetNuke.Services.Tokens.Scope accessLevel, ref bool propertyNotFound)
 {
     return(_moduleInfo.GetProperty(propertyName, format, formatProvider, accessingUser, accessLevel, ref propertyNotFound));
 }
        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 "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));

            case "company": // NVarChar
                if (Company == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(Company, 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 "displayname": // NVarChar
                return(PropertyAccess.FormatString(DisplayName, strFormat));

            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));
            }
        }
Beispiel #17
0
        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 "company": // NVarChar
                if (Company == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(Company, 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));

            case "url": // NVarChar
                if (Url == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(Url, strFormat));

            case "displayname": // NVarChar
                return(PropertyAccess.FormatString(DisplayName, strFormat));

            case "firstname": // NVarChar
                return(PropertyAccess.FormatString(FirstName, strFormat));

            case "lastname": // NVarChar
                return(PropertyAccess.FormatString(LastName, strFormat));

            case "email": // NVarChar
                if (Email == null)
                {
                    return("");
                }
                ;
                return(PropertyAccess.FormatString(Email, strFormat));

            case "username": // NVarChar
                return(PropertyAccess.FormatString(Username, strFormat));

            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));
            }
        }