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 "rideid": // Int
                return(RideId.ToString(strFormat, formatProvider));

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

            case "accepted": // Bit
                return(Accepted.ToString());

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

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }
示例#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 "rideid": // Int
                return(RideId.ToString(strFormat, formatProvider));

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

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

            case "incoming": // Bit
                return(Incoming.ToString());

            case "location": // NVarChar
                return(PropertyAccess.FormatString(Location, strFormat));

            case "notes": // NVarCharMax
                return(PropertyAccess.FormatString(Notes, strFormat));

            case "placesavailable": // Int
                return(PlacesAvailable.ToString(strFormat, formatProvider));

            default:
                propertyNotFound = true;
                break;
            }

            return(Null.NullString);
        }