//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;
[assembly: EdmSchemaAttribute()]
#region EDM Relationship Metadata
[assembly: EdmRelationshipAttribute("DotNetNuke5Model", "Post_Category", "Categories", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(DNNData.Category), "Posts", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(DNNData.Post), true)]
[assembly: EdmRelationshipAttribute("DotNetNuke5Model", "Message_Post", "Posts", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(DNNData.Post), "Messages", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(DNNData.Message), true)]
#endregion
namespace DNNData
{
#region Contexts
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public partial class DotNetNuke5Entities : ObjectContext
{
#region Constructors
/// <summary>
/// Initializes a new DotNetNuke5Entities object using the connection string found in the 'DotNetNuke5Entities' section of the application configuration file.
/// </summary>
public DotNetNuke5Entities() : base("name=DotNetNuke5Entities", "DotNetNuke5Entities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new DotNetNuke5Entities object.
/// </summary>
public DotNetNuke5Entities(string connectionString) : base(connectionString, "DotNetNuke5Entities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new DotNetNuke5Entities object.
/// </summary>
public DotNetNuke5Entities(EntityConnection connection) : base(connection, "DotNetNuke5Entities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Category> Categories
{
get
{
if ((_Categories == null))
{
_Categories = base.CreateObjectSet<Category>("Categories");
}
return _Categories;
}
}
private ObjectSet<Category> _Categories;
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Message> Messages
{
get
{
if ((_Messages == null))
{
_Messages = base.CreateObjectSet<Message>("Messages");
}
return _Messages;
}
}
private ObjectSet<Message> _Messages;
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Post> Posts
{
get
{
if ((_Posts == null))
{
_Posts = base.CreateObjectSet<Post>("Posts");
}
return _Posts;
}
}
private ObjectSet<Post> _Posts;
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<vw_UserRoles> vw_UserRoles
{
get
{
if ((_vw_UserRoles == null))
{
_vw_UserRoles = base.CreateObjectSet<vw_UserRoles>("vw_UserRoles");
}
return _vw_UserRoles;
}
}
private ObjectSet<vw_UserRoles> _vw_UserRoles;
#endregion
#region AddTo Methods
/// <summary>
/// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToCategories(Category category)
{
base.AddObject("Categories", category);
}
/// <summary>
/// Deprecated Method for adding a new object to the Messages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToMessages(Message message)
{
base.AddObject("Messages", message);
}
/// <summary>
/// Deprecated Method for adding a new object to the Posts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToPosts(Post post)
{
base.AddObject("Posts", post);
}
/// <summary>
/// Deprecated Method for adding a new object to the vw_UserRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddTovw_UserRoles(vw_UserRoles vw_UserRoles)
{
base.AddObject("vw_UserRoles", vw_UserRoles);
}
#endregion
}
#endregion
#region Entities
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="DotNetNuke5Model", Name="Category")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Category : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Category object.
/// </summary>
/// <param name="id">Initial value of the Id property.</param>
/// <param name="categoryName">Initial value of the CategoryName property.</param>
public static Category CreateCategory(global::System.Int32 id, global::System.String categoryName)
{
Category category = new Category();
category.Id = id;
category.CategoryName = categoryName;
return category;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 Id
{
get
{
return _Id;
}
set
{
if (_Id != value)
{
OnIdChanging(value);
ReportPropertyChanging("Id");
_Id = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Id");
OnIdChanged();
}
}
}
private global::System.Int32 _Id;
partial void OnIdChanging(global::System.Int32 value);
partial void OnIdChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String CategoryName
{
get
{
return _CategoryName;
}
set
{
OnCategoryNameChanging(value);
ReportPropertyChanging("CategoryName");
_CategoryName = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("CategoryName");
OnCategoryNameChanged();
}
}
private global::System.String _CategoryName;
partial void OnCategoryNameChanging(global::System.String value);
partial void OnCategoryNameChanged();
#endregion
#region Navigation Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("DotNetNuke5Model", "Post_Category", "Posts")]
public EntityCollection<Post> Posts
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Post>("DotNetNuke5Model.Post_Category", "Posts");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Post>("DotNetNuke5Model.Post_Category", "Posts", value);
}
}
}
#endregion
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="DotNetNuke5Model", Name="Message")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Message : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Message object.
/// </summary>
/// <param name="id">Initial value of the Id property.</param>
/// <param name="nameFrom">Initial value of the NameFrom property.</param>
/// <param name="emailFrom">Initial value of the EmailFrom property.</param>
/// <param name="nameTo">Initial value of the NameTo property.</param>
/// <param name="emailTo">Initial value of the EmailTo property.</param>
/// <param name="messageText">Initial value of the MessageText property.</param>
/// <param name="messageCreated">Initial value of the MessageCreated property.</param>
/// <param name="message_Post">Initial value of the Message_Post property.</param>
public static Message CreateMessage(global::System.Int32 id, global::System.String nameFrom, global::System.String emailFrom, global::System.String nameTo, global::System.String emailTo, global::System.String messageText, global::System.DateTime messageCreated, global::System.Int32 message_Post)
{
Message message = new Message();
message.Id = id;
message.NameFrom = nameFrom;
message.EmailFrom = emailFrom;
message.NameTo = nameTo;
message.EmailTo = emailTo;
message.MessageText = messageText;
message.MessageCreated = messageCreated;
message.Message_Post = message_Post;
return message;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 Id
{
get
{
return _Id;
}
set
{
if (_Id != value)
{
OnIdChanging(value);
ReportPropertyChanging("Id");
_Id = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Id");
OnIdChanged();
}
}
}
private global::System.Int32 _Id;
partial void OnIdChanging(global::System.Int32 value);
partial void OnIdChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String NameFrom
{
get
{
return _NameFrom;
}
set
{
OnNameFromChanging(value);
ReportPropertyChanging("NameFrom");
_NameFrom = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("NameFrom");
OnNameFromChanged();
}
}
private global::System.String _NameFrom;
partial void OnNameFromChanging(global::System.String value);
partial void OnNameFromChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String EmailFrom
{
get
{
return _EmailFrom;
}
set
{
OnEmailFromChanging(value);
ReportPropertyChanging("EmailFrom");
_EmailFrom = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("EmailFrom");
OnEmailFromChanged();
}
}
private global::System.String _EmailFrom;
partial void OnEmailFromChanging(global::System.String value);
partial void OnEmailFromChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String NameTo
{
get
{
return _NameTo;
}
set
{
OnNameToChanging(value);
ReportPropertyChanging("NameTo");
_NameTo = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("NameTo");
OnNameToChanged();
}
}
private global::System.String _NameTo;
partial void OnNameToChanging(global::System.String value);
partial void OnNameToChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String EmailTo
{
get
{
return _EmailTo;
}
set
{
OnEmailToChanging(value);
ReportPropertyChanging("EmailTo");
_EmailTo = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("EmailTo");
OnEmailToChanged();
}
}
private global::System.String _EmailTo;
partial void OnEmailToChanging(global::System.String value);
partial void OnEmailToChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String MessageText
{
get
{
return _MessageText;
}
set
{
OnMessageTextChanging(value);
ReportPropertyChanging("MessageText");
_MessageText = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("MessageText");
OnMessageTextChanged();
}
}
private global::System.String _MessageText;
partial void OnMessageTextChanging(global::System.String value);
partial void OnMessageTextChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String MessageBy
{
get
{
return _MessageBy;
}
set
{
OnMessageByChanging(value);
ReportPropertyChanging("MessageBy");
_MessageBy = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("MessageBy");
OnMessageByChanged();
}
}
private global::System.String _MessageBy;
partial void OnMessageByChanging(global::System.String value);
partial void OnMessageByChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.DateTime MessageCreated
{
get
{
return _MessageCreated;
}
set
{
OnMessageCreatedChanging(value);
ReportPropertyChanging("MessageCreated");
_MessageCreated = StructuralObject.SetValidValue(value);
ReportPropertyChanged("MessageCreated");
OnMessageCreatedChanged();
}
}
private global::System.DateTime _MessageCreated;
partial void OnMessageCreatedChanging(global::System.DateTime value);
partial void OnMessageCreatedChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 Message_Post
{
get
{
return _Message_Post;
}
set
{
OnMessage_PostChanging(value);
ReportPropertyChanging("Message_Post");
_Message_Post = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Message_Post");
OnMessage_PostChanged();
}
}
private global::System.Int32 _Message_Post;
partial void OnMessage_PostChanging(global::System.Int32 value);
partial void OnMessage_PostChanged();
#endregion
#region Navigation Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("DotNetNuke5Model", "Message_Post", "Posts")]
public Post Post
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Post>("DotNetNuke5Model.Message_Post", "Posts").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Post>("DotNetNuke5Model.Message_Post", "Posts").Value = value;
}
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference<Post> PostReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Post>("DotNetNuke5Model.Message_Post", "Posts");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Post>("DotNetNuke5Model.Message_Post", "Posts", value);
}
}
}
#endregion
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="DotNetNuke5Model", Name="Post")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Post : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Post object.
/// </summary>
/// <param name="id">Initial value of the Id property.</param>
/// <param name="description">Initial value of the Description property.</param>
/// <param name="price">Initial value of the Price property.</param>
/// <param name="postedBy">Initial value of the PostedBy property.</param>
/// <param name="postCreated">Initial value of the PostCreated property.</param>
/// <param name="postUpdated">Initial value of the PostUpdated property.</param>
/// <param name="active">Initial value of the Active property.</param>
/// <param name="post_Category">Initial value of the Post_Category property.</param>
public static Post CreatePost(global::System.Int32 id, global::System.String description, global::System.Decimal price, global::System.String postedBy, global::System.DateTime postCreated, global::System.DateTime postUpdated, global::System.Boolean active, global::System.Int32 post_Category)
{
Post post = new Post();
post.Id = id;
post.Description = description;
post.Price = price;
post.PostedBy = postedBy;
post.PostCreated = postCreated;
post.PostUpdated = postUpdated;
post.Active = active;
post.Post_Category = post_Category;
return post;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 Id
{
get
{
return _Id;
}
set
{
if (_Id != value)
{
OnIdChanging(value);
ReportPropertyChanging("Id");
_Id = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Id");
OnIdChanged();
}
}
}
private global::System.Int32 _Id;
partial void OnIdChanging(global::System.Int32 value);
partial void OnIdChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String Description
{
get
{
return _Description;
}
set
{
OnDescriptionChanging(value);
ReportPropertyChanging("Description");
_Description = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("Description");
OnDescriptionChanged();
}
}
private global::System.String _Description;
partial void OnDescriptionChanging(global::System.String value);
partial void OnDescriptionChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Decimal Price
{
get
{
return _Price;
}
set
{
OnPriceChanging(value);
ReportPropertyChanging("Price");
_Price = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Price");
OnPriceChanged();
}
}
private global::System.Decimal _Price;
partial void OnPriceChanging(global::System.Decimal value);
partial void OnPriceChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String PostedBy
{
get
{
return _PostedBy;
}
set
{
OnPostedByChanging(value);
ReportPropertyChanging("PostedBy");
_PostedBy = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("PostedBy");
OnPostedByChanged();
}
}
private global::System.String _PostedBy;
partial void OnPostedByChanging(global::System.String value);
partial void OnPostedByChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.DateTime PostCreated
{
get
{
return _PostCreated;
}
set
{
OnPostCreatedChanging(value);
ReportPropertyChanging("PostCreated");
_PostCreated = StructuralObject.SetValidValue(value);
ReportPropertyChanged("PostCreated");
OnPostCreatedChanged();
}
}
private global::System.DateTime _PostCreated;
partial void OnPostCreatedChanging(global::System.DateTime value);
partial void OnPostCreatedChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.DateTime PostUpdated
{
get
{
return _PostUpdated;
}
set
{
OnPostUpdatedChanging(value);
ReportPropertyChanging("PostUpdated");
_PostUpdated = StructuralObject.SetValidValue(value);
ReportPropertyChanged("PostUpdated");
OnPostUpdatedChanged();
}
}
private global::System.DateTime _PostUpdated;
partial void OnPostUpdatedChanging(global::System.DateTime value);
partial void OnPostUpdatedChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Boolean Active
{
get
{
return _Active;
}
set
{
OnActiveChanging(value);
ReportPropertyChanging("Active");
_Active = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Active");
OnActiveChanged();
}
}
private global::System.Boolean _Active;
partial void OnActiveChanging(global::System.Boolean value);
partial void OnActiveChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 Post_Category
{
get
{
return _Post_Category;
}
set
{
OnPost_CategoryChanging(value);
ReportPropertyChanging("Post_Category");
_Post_Category = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Post_Category");
OnPost_CategoryChanged();
}
}
private global::System.Int32 _Post_Category;
partial void OnPost_CategoryChanging(global::System.Int32 value);
partial void OnPost_CategoryChanged();
#endregion
#region Navigation Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("DotNetNuke5Model", "Post_Category", "Categories")]
public Category Category
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("DotNetNuke5Model.Post_Category", "Categories").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("DotNetNuke5Model.Post_Category", "Categories").Value = value;
}
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference<Category> CategoryReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("DotNetNuke5Model.Post_Category", "Categories");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Category>("DotNetNuke5Model.Post_Category", "Categories", value);
}
}
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("DotNetNuke5Model", "Message_Post", "Messages")]
public EntityCollection<Message> Messages
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Message>("DotNetNuke5Model.Message_Post", "Messages");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Message>("DotNetNuke5Model.Message_Post", "Messages", value);
}
}
}
#endregion
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="DotNetNuke5Model", Name="vw_UserRoles")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class vw_UserRoles : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new vw_UserRoles object.
/// </summary>
/// <param name="userRoleID">Initial value of the UserRoleID property.</param>
/// <param name="roleID">Initial value of the RoleID property.</param>
/// <param name="userID">Initial value of the UserID property.</param>
/// <param name="portalID">Initial value of the PortalID property.</param>
/// <param name="roleName">Initial value of the RoleName property.</param>
/// <param name="username">Initial value of the Username property.</param>
/// <param name="displayName">Initial value of the DisplayName property.</param>
/// <param name="isPublic">Initial value of the IsPublic property.</param>
/// <param name="autoAssignment">Initial value of the AutoAssignment property.</param>
public static vw_UserRoles Createvw_UserRoles(global::System.Int32 userRoleID, global::System.Int32 roleID, global::System.Int32 userID, global::System.Int32 portalID, global::System.String roleName, global::System.String username, global::System.String displayName, global::System.Boolean isPublic, global::System.Boolean autoAssignment)
{
vw_UserRoles vw_UserRoles = new vw_UserRoles();
vw_UserRoles.UserRoleID = userRoleID;
vw_UserRoles.RoleID = roleID;
vw_UserRoles.UserID = userID;
vw_UserRoles.PortalID = portalID;
vw_UserRoles.RoleName = roleName;
vw_UserRoles.Username = username;
vw_UserRoles.DisplayName = displayName;
vw_UserRoles.IsPublic = isPublic;
vw_UserRoles.AutoAssignment = autoAssignment;
return vw_UserRoles;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 UserRoleID
{
get
{
return _UserRoleID;
}
set
{
if (_UserRoleID != value)
{
OnUserRoleIDChanging(value);
ReportPropertyChanging("UserRoleID");
_UserRoleID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("UserRoleID");
OnUserRoleIDChanged();
}
}
}
private global::System.Int32 _UserRoleID;
partial void OnUserRoleIDChanging(global::System.Int32 value);
partial void OnUserRoleIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 RoleID
{
get
{
return _RoleID;
}
set
{
if (_RoleID != value)
{
OnRoleIDChanging(value);
ReportPropertyChanging("RoleID");
_RoleID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("RoleID");
OnRoleIDChanged();
}
}
}
private global::System.Int32 _RoleID;
partial void OnRoleIDChanging(global::System.Int32 value);
partial void OnRoleIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 UserID
{
get
{
return _UserID;
}
set
{
if (_UserID != value)
{
OnUserIDChanging(value);
ReportPropertyChanging("UserID");
_UserID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("UserID");
OnUserIDChanged();
}
}
}
private global::System.Int32 _UserID;
partial void OnUserIDChanging(global::System.Int32 value);
partial void OnUserIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 PortalID
{
get
{
return _PortalID;
}
set
{
if (_PortalID != value)
{
OnPortalIDChanging(value);
ReportPropertyChanging("PortalID");
_PortalID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("PortalID");
OnPortalIDChanged();
}
}
}
private global::System.Int32 _PortalID;
partial void OnPortalIDChanging(global::System.Int32 value);
partial void OnPortalIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String RoleName
{
get
{
return _RoleName;
}
set
{
if (_RoleName != value)
{
OnRoleNameChanging(value);
ReportPropertyChanging("RoleName");
_RoleName = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("RoleName");
OnRoleNameChanged();
}
}
}
private global::System.String _RoleName;
partial void OnRoleNameChanging(global::System.String value);
partial void OnRoleNameChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String Username
{
get
{
return _Username;
}
set
{
if (_Username != value)
{
OnUsernameChanging(value);
ReportPropertyChanging("Username");
_Username = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("Username");
OnUsernameChanged();
}
}
}
private global::System.String _Username;
partial void OnUsernameChanging(global::System.String value);
partial void OnUsernameChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String Description
{
get
{
return _Description;
}
set
{
OnDescriptionChanging(value);
ReportPropertyChanging("Description");
_Description = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("Description");
OnDescriptionChanged();
}
}
private global::System.String _Description;
partial void OnDescriptionChanging(global::System.String value);
partial void OnDescriptionChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String DisplayName
{
get
{
return _DisplayName;
}
set
{
if (_DisplayName != value)
{
OnDisplayNameChanging(value);
ReportPropertyChanging("DisplayName");
_DisplayName = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("DisplayName");
OnDisplayNameChanged();
}
}
}
private global::System.String _DisplayName;
partial void OnDisplayNameChanging(global::System.String value);
partial void OnDisplayNameChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String Email
{
get
{
return _Email;
}
set
{
OnEmailChanging(value);
ReportPropertyChanging("Email");
_Email = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("Email");
OnEmailChanged();
}
}
private global::System.String _Email;
partial void OnEmailChanging(global::System.String value);
partial void OnEmailChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Decimal> ServiceFee
{
get
{
return _ServiceFee;
}
set
{
OnServiceFeeChanging(value);
ReportPropertyChanging("ServiceFee");
_ServiceFee = StructuralObject.SetValidValue(value);
ReportPropertyChanged("ServiceFee");
OnServiceFeeChanged();
}
}
private Nullable<global::System.Decimal> _ServiceFee;
partial void OnServiceFeeChanging(Nullable<global::System.Decimal> value);
partial void OnServiceFeeChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String BillingFrequency
{
get
{
return _BillingFrequency;
}
set
{
OnBillingFrequencyChanging(value);
ReportPropertyChanging("BillingFrequency");
_BillingFrequency = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("BillingFrequency");
OnBillingFrequencyChanged();
}
}
private global::System.String _BillingFrequency;
partial void OnBillingFrequencyChanging(global::System.String value);
partial void OnBillingFrequencyChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Int32> TrialPeriod
{
get
{
return _TrialPeriod;
}
set
{
OnTrialPeriodChanging(value);
ReportPropertyChanging("TrialPeriod");
_TrialPeriod = StructuralObject.SetValidValue(value);
ReportPropertyChanged("TrialPeriod");
OnTrialPeriodChanged();
}
}
private Nullable<global::System.Int32> _TrialPeriod;
partial void OnTrialPeriodChanging(Nullable<global::System.Int32> value);
partial void OnTrialPeriodChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String TrialFrequency
{
get
{
return _TrialFrequency;
}
set
{
OnTrialFrequencyChanging(value);
ReportPropertyChanging("TrialFrequency");
_TrialFrequency = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("TrialFrequency");
OnTrialFrequencyChanged();
}
}
private global::System.String _TrialFrequency;
partial void OnTrialFrequencyChanging(global::System.String value);
partial void OnTrialFrequencyChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Int32> BillingPeriod
{
get
{
return _BillingPeriod;
}
set
{
OnBillingPeriodChanging(value);
ReportPropertyChanging("BillingPeriod");
_BillingPeriod = StructuralObject.SetValidValue(value);
ReportPropertyChanged("BillingPeriod");
OnBillingPeriodChanged();
}
}
private Nullable<global::System.Int32> _BillingPeriod;
partial void OnBillingPeriodChanging(Nullable<global::System.Int32> value);
partial void OnBillingPeriodChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Decimal> TrialFee
{
get
{
return _TrialFee;
}
set
{
OnTrialFeeChanging(value);
ReportPropertyChanging("TrialFee");
_TrialFee = StructuralObject.SetValidValue(value);
ReportPropertyChanged("TrialFee");
OnTrialFeeChanged();
}
}
private Nullable<global::System.Decimal> _TrialFee;
partial void OnTrialFeeChanging(Nullable<global::System.Decimal> value);
partial void OnTrialFeeChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Boolean IsPublic
{
get
{
return _IsPublic;
}
set
{
if (_IsPublic != value)
{
OnIsPublicChanging(value);
ReportPropertyChanging("IsPublic");
_IsPublic = StructuralObject.SetValidValue(value);
ReportPropertyChanged("IsPublic");
OnIsPublicChanged();
}
}
}
private global::System.Boolean _IsPublic;
partial void OnIsPublicChanging(global::System.Boolean value);
partial void OnIsPublicChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Boolean AutoAssignment
{
get
{
return _AutoAssignment;
}
set
{
if (_AutoAssignment != value)
{
OnAutoAssignmentChanging(value);
ReportPropertyChanging("AutoAssignment");
_AutoAssignment = StructuralObject.SetValidValue(value);
ReportPropertyChanged("AutoAssignment");
OnAutoAssignmentChanged();
}
}
}
private global::System.Boolean _AutoAssignment;
partial void OnAutoAssignmentChanging(global::System.Boolean value);
partial void OnAutoAssignmentChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Int32> RoleGroupID
{
get
{
return _RoleGroupID;
}
set
{
OnRoleGroupIDChanging(value);
ReportPropertyChanging("RoleGroupID");
_RoleGroupID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("RoleGroupID");
OnRoleGroupIDChanged();
}
}
private Nullable<global::System.Int32> _RoleGroupID;
partial void OnRoleGroupIDChanging(Nullable<global::System.Int32> value);
partial void OnRoleGroupIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String RSVPCode
{
get
{
return _RSVPCode;
}
set
{
OnRSVPCodeChanging(value);
ReportPropertyChanging("RSVPCode");
_RSVPCode = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("RSVPCode");
OnRSVPCodeChanged();
}
}
private global::System.String _RSVPCode;
partial void OnRSVPCodeChanging(global::System.String value);
partial void OnRSVPCodeChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String IconFile
{
get
{
return _IconFile;
}
set
{
OnIconFileChanging(value);
ReportPropertyChanging("IconFile");
_IconFile = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("IconFile");
OnIconFileChanged();
}
}
private global::System.String _IconFile;
partial void OnIconFileChanging(global::System.String value);
partial void OnIconFileChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.DateTime> EffectiveDate
{
get
{
return _EffectiveDate;
}
set
{
OnEffectiveDateChanging(value);
ReportPropertyChanging("EffectiveDate");
_EffectiveDate = StructuralObject.SetValidValue(value);
ReportPropertyChanged("EffectiveDate");
OnEffectiveDateChanged();
}
}
private Nullable<global::System.DateTime> _EffectiveDate;
partial void OnEffectiveDateChanging(Nullable<global::System.DateTime> value);
partial void OnEffectiveDateChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.DateTime> ExpiryDate
{
get
{
return _ExpiryDate;
}
set
{
OnExpiryDateChanging(value);
ReportPropertyChanging("ExpiryDate");
_ExpiryDate = StructuralObject.SetValidValue(value);
ReportPropertyChanged("ExpiryDate");
OnExpiryDateChanged();
}
}
private Nullable<global::System.DateTime> _ExpiryDate;
partial void OnExpiryDateChanging(Nullable<global::System.DateTime> value);
partial void OnExpiryDateChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Boolean> IsTrialUsed
{
get
{
return _IsTrialUsed;
}
set
{
OnIsTrialUsedChanging(value);
ReportPropertyChanging("IsTrialUsed");
_IsTrialUsed = StructuralObject.SetValidValue(value);
ReportPropertyChanged("IsTrialUsed");
OnIsTrialUsedChanged();
}
}
private Nullable<global::System.Boolean> _IsTrialUsed;
partial void OnIsTrialUsedChanging(Nullable<global::System.Boolean> value);
partial void OnIsTrialUsedChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Int32> CreatedByUserID
{
get
{
return _CreatedByUserID;
}
set
{
OnCreatedByUserIDChanging(value);
ReportPropertyChanging("CreatedByUserID");
_CreatedByUserID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CreatedByUserID");
OnCreatedByUserIDChanged();
}
}
private Nullable<global::System.Int32> _CreatedByUserID;
partial void OnCreatedByUserIDChanging(Nullable<global::System.Int32> value);
partial void OnCreatedByUserIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.DateTime> CreatedOnDate
{
get
{
return _CreatedOnDate;
}
set
{
OnCreatedOnDateChanging(value);
ReportPropertyChanging("CreatedOnDate");
_CreatedOnDate = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CreatedOnDate");
OnCreatedOnDateChanged();
}
}
private Nullable<global::System.DateTime> _CreatedOnDate;
partial void OnCreatedOnDateChanging(Nullable<global::System.DateTime> value);
partial void OnCreatedOnDateChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Int32> LastModifiedByUserID
{
get
{
return _LastModifiedByUserID;
}
set
{
OnLastModifiedByUserIDChanging(value);
ReportPropertyChanging("LastModifiedByUserID");
_LastModifiedByUserID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("LastModifiedByUserID");
OnLastModifiedByUserIDChanged();
}
}
private Nullable<global::System.Int32> _LastModifiedByUserID;
partial void OnLastModifiedByUserIDChanging(Nullable<global::System.Int32> value);
partial void OnLastModifiedByUserIDChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.DateTime> LastModifiedOnDate
{
get
{
return _LastModifiedOnDate;
}
set
{
OnLastModifiedOnDateChanging(value);
ReportPropertyChanging("LastModifiedOnDate");
_LastModifiedOnDate = StructuralObject.SetValidValue(value);
ReportPropertyChanged("LastModifiedOnDate");
OnLastModifiedOnDateChanged();
}
}
private Nullable<global::System.DateTime> _LastModifiedOnDate;
partial void OnLastModifiedOnDateChanging(Nullable<global::System.DateTime> value);
partial void OnLastModifiedOnDateChanged();
#endregion
}
#endregion
}