ProfileBase Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Base class for user profiles. Can be overridden to add custom profile data.

[Guid("6D20675B-15EC-4161-B76E-6CB1AD6015EE")]
[Plugin(Name = "Profile", Description = "Base class for user profiles, can be overridden to add custom profile data.")]
public class ProfileBase : Expando, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ICloneable, IValidatableObject, ITaggable, IHasAvatar
Inheritance:
System.Object → ExpandoProfileBase
Attributes:
System.Runtime.InteropServices.GuidAttribute, PluginAttribute
Implements:
IExtension, IExpando, ITaggable, IHasAvatar

Constructors

ProfileBase() Initializes a new instance of the ProfileBase class.

Properties

Avatar Gets or sets the profile picture.
Name Gets or sets the full name (firstname lastname) of the ProfileBase.
Tags Gets or sets the list of tags for the profile.

Methods

GetExcerpt() Gets an excerpt or summary suitable for display in lists and search results.
IExpando.get_Item(String)
IExpando.set_Item(String, Object)
Validate(ValidationContext) Performs custom validation. Subclasses can override this method to supply their own implementation.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.