//------------------------------------------------------------------------------ // // 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. // //------------------------------------------------------------------------------ using System; using System.ComponentModel; using System.Data.EntityClient; using System.Data.Objects; using System.Data.Objects.DataClasses; using System.Linq; using System.Runtime.Serialization; using System.Xml.Serialization; [assembly: EdmSchemaAttribute()] namespace MovieFinder.Web.Data { #region Contexts /// /// No Metadata Documentation available. /// public partial class MovieFinderEntities : ObjectContext { #region Constructors /// /// Initializes a new MovieFinderEntities object using the connection string found in the 'MovieFinderEntities' section of the application configuration file. /// public MovieFinderEntities() : base("name=MovieFinderEntities", "MovieFinderEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } /// /// Initialize a new MovieFinderEntities object. /// public MovieFinderEntities(string connectionString) : base(connectionString, "MovieFinderEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } /// /// Initialize a new MovieFinderEntities object. /// public MovieFinderEntities(EntityConnection connection) : base(connection, "MovieFinderEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } #endregion #region Partial Methods partial void OnContextCreated(); #endregion #region ObjectSet Properties /// /// No Metadata Documentation available. /// public ObjectSet AccessLogs { get { if ((_AccessLogs == null)) { _AccessLogs = base.CreateObjectSet("AccessLogs"); } return _AccessLogs; } } private ObjectSet _AccessLogs; /// /// No Metadata Documentation available. /// public ObjectSet MovieLinks { get { if ((_MovieLinks == null)) { _MovieLinks = base.CreateObjectSet("MovieLinks"); } return _MovieLinks; } } private ObjectSet _MovieLinks; #endregion #region AddTo Methods /// /// Deprecated Method for adding a new object to the AccessLogs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToAccessLogs(AccessLog accessLog) { base.AddObject("AccessLogs", accessLog); } /// /// Deprecated Method for adding a new object to the MovieLinks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToMovieLinks(MovieLink movieLink) { base.AddObject("MovieLinks", movieLink); } #endregion } #endregion #region Entities /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="MovieFinderModel", Name="AccessLog")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class AccessLog : EntityObject { #region Factory Method /// /// Create a new AccessLog object. /// /// Initial value of the ID property. /// Initial value of the UniqueID property. /// Initial value of the Timestamp property. /// Initial value of the AccessCount property. public static AccessLog CreateAccessLog(global::System.Int32 id, global::System.Guid uniqueID, global::System.DateTime timestamp, global::System.Int32 accessCount) { AccessLog accessLog = new AccessLog(); accessLog.ID = id; accessLog.UniqueID = uniqueID; accessLog.Timestamp = timestamp; accessLog.AccessCount = accessCount; return accessLog; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Guid UniqueID { get { return _UniqueID; } set { OnUniqueIDChanging(value); ReportPropertyChanging("UniqueID"); _UniqueID = StructuralObject.SetValidValue(value); ReportPropertyChanged("UniqueID"); OnUniqueIDChanged(); } } private global::System.Guid _UniqueID; partial void OnUniqueIDChanging(global::System.Guid value); partial void OnUniqueIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String IPAddress { get { return _IPAddress; } set { OnIPAddressChanging(value); ReportPropertyChanging("IPAddress"); _IPAddress = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("IPAddress"); OnIPAddressChanged(); } } private global::System.String _IPAddress; partial void OnIPAddressChanging(global::System.String value); partial void OnIPAddressChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.DateTime Timestamp { get { return _Timestamp; } set { OnTimestampChanging(value); ReportPropertyChanging("Timestamp"); _Timestamp = StructuralObject.SetValidValue(value); ReportPropertyChanged("Timestamp"); OnTimestampChanged(); } } private global::System.DateTime _Timestamp; partial void OnTimestampChanging(global::System.DateTime value); partial void OnTimestampChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 AccessCount { get { return _AccessCount; } set { OnAccessCountChanging(value); ReportPropertyChanging("AccessCount"); _AccessCount = StructuralObject.SetValidValue(value); ReportPropertyChanged("AccessCount"); OnAccessCountChanged(); } } private global::System.Int32 _AccessCount; partial void OnAccessCountChanging(global::System.Int32 value); partial void OnAccessCountChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String CountryCode { get { return _CountryCode; } set { OnCountryCodeChanging(value); ReportPropertyChanging("CountryCode"); _CountryCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("CountryCode"); OnCountryCodeChanged(); } } private global::System.String _CountryCode; partial void OnCountryCodeChanging(global::System.String value); partial void OnCountryCodeChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable ClientTime { get { return _ClientTime; } set { OnClientTimeChanging(value); ReportPropertyChanging("ClientTime"); _ClientTime = StructuralObject.SetValidValue(value); ReportPropertyChanged("ClientTime"); OnClientTimeChanged(); } } private Nullable _ClientTime; partial void OnClientTimeChanging(Nullable value); partial void OnClientTimeChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PCName { get { return _PCName; } set { OnPCNameChanging(value); ReportPropertyChanging("PCName"); _PCName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PCName"); OnPCNameChanged(); } } private global::System.String _PCName; partial void OnPCNameChanging(global::System.String value); partial void OnPCNameChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Version { get { return _Version; } set { OnVersionChanging(value); ReportPropertyChanging("Version"); _Version = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Version"); OnVersionChanged(); } } private global::System.String _Version; partial void OnVersionChanging(global::System.String value); partial void OnVersionChanged(); #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="MovieFinderModel", Name="MovieLink")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class MovieLink : EntityObject { #region Factory Method /// /// Create a new MovieLink object. /// /// Initial value of the ID property. /// Initial value of the MovieID property. /// Initial value of the LinkTitle property. /// Initial value of the SiteTitle property. /// Initial value of the PageUrl property. /// Initial value of the PageSiteID property. /// Initial value of the DownloadSiteID property. /// Initial value of the DowloadUrl property. /// Initial value of the FailedAttempts property. /// Initial value of the Version property. /// Initial value of the HasSubtitle property. public static MovieLink CreateMovieLink(global::System.Int32 id, global::System.Int32 movieID, global::System.String linkTitle, global::System.String siteTitle, global::System.String pageUrl, global::System.String pageSiteID, global::System.String downloadSiteID, global::System.String dowloadUrl, global::System.Int32 failedAttempts, global::System.Int32 version, global::System.Boolean hasSubtitle) { MovieLink movieLink = new MovieLink(); movieLink.ID = id; movieLink.MovieID = movieID; movieLink.LinkTitle = linkTitle; movieLink.SiteTitle = siteTitle; movieLink.PageUrl = pageUrl; movieLink.PageSiteID = pageSiteID; movieLink.DownloadSiteID = downloadSiteID; movieLink.DowloadUrl = dowloadUrl; movieLink.FailedAttempts = failedAttempts; movieLink.Version = version; movieLink.HasSubtitle = hasSubtitle; return movieLink; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 MovieID { get { return _MovieID; } set { OnMovieIDChanging(value); ReportPropertyChanging("MovieID"); _MovieID = StructuralObject.SetValidValue(value); ReportPropertyChanged("MovieID"); OnMovieIDChanged(); } } private global::System.Int32 _MovieID; partial void OnMovieIDChanging(global::System.Int32 value); partial void OnMovieIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String LinkTitle { get { return _LinkTitle; } set { OnLinkTitleChanging(value); ReportPropertyChanging("LinkTitle"); _LinkTitle = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("LinkTitle"); OnLinkTitleChanged(); } } private global::System.String _LinkTitle; partial void OnLinkTitleChanging(global::System.String value); partial void OnLinkTitleChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String SiteTitle { get { return _SiteTitle; } set { OnSiteTitleChanging(value); ReportPropertyChanging("SiteTitle"); _SiteTitle = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("SiteTitle"); OnSiteTitleChanged(); } } private global::System.String _SiteTitle; partial void OnSiteTitleChanging(global::System.String value); partial void OnSiteTitleChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String PageUrl { get { return _PageUrl; } set { OnPageUrlChanging(value); ReportPropertyChanging("PageUrl"); _PageUrl = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("PageUrl"); OnPageUrlChanged(); } } private global::System.String _PageUrl; partial void OnPageUrlChanging(global::System.String value); partial void OnPageUrlChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String PageSiteID { get { return _PageSiteID; } set { OnPageSiteIDChanging(value); ReportPropertyChanging("PageSiteID"); _PageSiteID = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("PageSiteID"); OnPageSiteIDChanged(); } } private global::System.String _PageSiteID; partial void OnPageSiteIDChanging(global::System.String value); partial void OnPageSiteIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String DownloadSiteID { get { return _DownloadSiteID; } set { OnDownloadSiteIDChanging(value); ReportPropertyChanging("DownloadSiteID"); _DownloadSiteID = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("DownloadSiteID"); OnDownloadSiteIDChanged(); } } private global::System.String _DownloadSiteID; partial void OnDownloadSiteIDChanging(global::System.String value); partial void OnDownloadSiteIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String DowloadUrl { get { return _DowloadUrl; } set { OnDowloadUrlChanging(value); ReportPropertyChanging("DowloadUrl"); _DowloadUrl = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("DowloadUrl"); OnDowloadUrlChanged(); } } private global::System.String _DowloadUrl; partial void OnDowloadUrlChanging(global::System.String value); partial void OnDowloadUrlChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 FailedAttempts { get { return _FailedAttempts; } set { OnFailedAttemptsChanging(value); ReportPropertyChanging("FailedAttempts"); _FailedAttempts = StructuralObject.SetValidValue(value); ReportPropertyChanged("FailedAttempts"); OnFailedAttemptsChanged(); } } private global::System.Int32 _FailedAttempts; partial void OnFailedAttemptsChanging(global::System.Int32 value); partial void OnFailedAttemptsChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable LastValidatedWhen { get { return _LastValidatedWhen; } set { OnLastValidatedWhenChanging(value); ReportPropertyChanging("LastValidatedWhen"); _LastValidatedWhen = StructuralObject.SetValidValue(value); ReportPropertyChanged("LastValidatedWhen"); OnLastValidatedWhenChanged(); } } private Nullable _LastValidatedWhen; partial void OnLastValidatedWhenChanging(Nullable value); partial void OnLastValidatedWhenChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 Version { get { return _Version; } set { OnVersionChanging(value); ReportPropertyChanging("Version"); _Version = StructuralObject.SetValidValue(value); ReportPropertyChanged("Version"); OnVersionChanged(); } } private global::System.Int32 _Version; partial void OnVersionChanging(global::System.Int32 value); partial void OnVersionChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable LastValidatedBy { get { return _LastValidatedBy; } set { OnLastValidatedByChanging(value); ReportPropertyChanging("LastValidatedBy"); _LastValidatedBy = StructuralObject.SetValidValue(value); ReportPropertyChanged("LastValidatedBy"); OnLastValidatedByChanged(); } } private Nullable _LastValidatedBy; partial void OnLastValidatedByChanging(Nullable value); partial void OnLastValidatedByChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Boolean HasSubtitle { get { return _HasSubtitle; } set { OnHasSubtitleChanging(value); ReportPropertyChanging("HasSubtitle"); _HasSubtitle = StructuralObject.SetValidValue(value); ReportPropertyChanged("HasSubtitle"); OnHasSubtitleChanged(); } } private global::System.Boolean _HasSubtitle; partial void OnHasSubtitleChanging(global::System.Boolean value); partial void OnHasSubtitleChanged(); #endregion } #endregion }