Class User
Class to represent the User in the model
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:UM4RS.User
Assembly:UM4RS.dll
Syntax
[Table("User")]
public class User : ModelEntity<User>, IDisposable, IBaseEntity
Properties
Contact
Represent the Contact information of the User
Declaration
[NonExportable]
public virtual Contact Contact { get; set; }
Property Value
| Type | Description |
|---|---|
| Contact |
Demographic
Represent the Demographic aspects of the User
Declaration
[Exportable]
public virtual Demographic Demographic { get; set; }
Property Value
| Type | Description |
|---|---|
| Demographic |
Emotions
List of the EmotionalState of the User
Declaration
[Exportable]
public virtual ICollection<EmotionalState> Emotions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<T><EmotionalState> |
Id
Id (unique) to use as key in the DataBase
Declaration
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Exportable(GlobalOrder = 0, Name = "userID")]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Implements
InterestPreference
Represent a Relation class for the Interest and Preferences of the User
Declaration
[Exportable]
public virtual InterestPreference InterestPreference { get; set; }
Property Value
| Type | Description |
|---|---|
| InterestPreference |
Mental
Represents the Mental characteristics of the User
Declaration
[Exportable]
public virtual Mental Mental { get; set; }
Property Value
| Type | Description |
|---|---|
| Mental |
Personality
Represent the Personality attributes of the User
Declaration
[NonExportable]
public virtual ICollection<PersonalityAttribute> Personality { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<T><PersonalityAttribute> |
Physiology
Represent the Physiological aspects of the User
Declaration
[Exportable]
public virtual Physiology Physiology { get; set; }
Property Value
| Type | Description |
|---|---|
| Physiology |
Roles
The Roles that the User is playing
Declaration
[NonExportable]
public virtual ICollection<Role> Roles { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<T><Role> |
SocialNetworks
The list of social networks/online platforms the user belong to
Declaration
[Exportable]
public virtual ICollection<SocialNetwork> SocialNetworks { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<T><SocialNetwork> |
Methods
GetOrCreate(Int32)
Get or Creates an empty @User in DB (used by importers)
Declaration
public static User GetOrCreate(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | id |
Returns
| Type | Description |
|---|---|
| User | @User |