File size: 26,821 Bytes
e26fba6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 |
//------------------------------------------------------------------------------
// <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.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
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public partial class MovieFinderEntities : ObjectContext
{
#region Constructors
/// <summary>
/// Initializes a new MovieFinderEntities object using the connection string found in the 'MovieFinderEntities' section of the application configuration file.
/// </summary>
public MovieFinderEntities() : base("name=MovieFinderEntities", "MovieFinderEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new MovieFinderEntities object.
/// </summary>
public MovieFinderEntities(string connectionString) : base(connectionString, "MovieFinderEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new MovieFinderEntities object.
/// </summary>
public MovieFinderEntities(EntityConnection connection) : base(connection, "MovieFinderEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<AccessLog> AccessLogs
{
get
{
if ((_AccessLogs == null))
{
_AccessLogs = base.CreateObjectSet<AccessLog>("AccessLogs");
}
return _AccessLogs;
}
}
private ObjectSet<AccessLog> _AccessLogs;
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<MovieLink> MovieLinks
{
get
{
if ((_MovieLinks == null))
{
_MovieLinks = base.CreateObjectSet<MovieLink>("MovieLinks");
}
return _MovieLinks;
}
}
private ObjectSet<MovieLink> _MovieLinks;
#endregion
#region AddTo Methods
/// <summary>
/// Deprecated Method for adding a new object to the AccessLogs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToAccessLogs(AccessLog accessLog)
{
base.AddObject("AccessLogs", accessLog);
}
/// <summary>
/// Deprecated Method for adding a new object to the MovieLinks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToMovieLinks(MovieLink movieLink)
{
base.AddObject("MovieLinks", movieLink);
}
#endregion
}
#endregion
#region Entities
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="MovieFinderModel", Name="AccessLog")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class AccessLog : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new AccessLog object.
/// </summary>
/// <param name="id">Initial value of the ID property.</param>
/// <param name="uniqueID">Initial value of the UniqueID property.</param>
/// <param name="timestamp">Initial value of the Timestamp property.</param>
/// <param name="accessCount">Initial value of the AccessCount property.</param>
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
/// <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.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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.DateTime> ClientTime
{
get
{
return _ClientTime;
}
set
{
OnClientTimeChanging(value);
ReportPropertyChanging("ClientTime");
_ClientTime = StructuralObject.SetValidValue(value);
ReportPropertyChanged("ClientTime");
OnClientTimeChanged();
}
}
private Nullable<global::System.DateTime> _ClientTime;
partial void OnClientTimeChanging(Nullable<global::System.DateTime> value);
partial void OnClientTimeChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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
}
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="MovieFinderModel", Name="MovieLink")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class MovieLink : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new MovieLink object.
/// </summary>
/// <param name="id">Initial value of the ID property.</param>
/// <param name="movieID">Initial value of the MovieID property.</param>
/// <param name="linkTitle">Initial value of the LinkTitle property.</param>
/// <param name="siteTitle">Initial value of the SiteTitle property.</param>
/// <param name="pageUrl">Initial value of the PageUrl property.</param>
/// <param name="pageSiteID">Initial value of the PageSiteID property.</param>
/// <param name="downloadSiteID">Initial value of the DownloadSiteID property.</param>
/// <param name="dowloadUrl">Initial value of the DowloadUrl property.</param>
/// <param name="failedAttempts">Initial value of the FailedAttempts property.</param>
/// <param name="version">Initial value of the Version property.</param>
/// <param name="hasSubtitle">Initial value of the HasSubtitle property.</param>
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
/// <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.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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.DateTime> LastValidatedWhen
{
get
{
return _LastValidatedWhen;
}
set
{
OnLastValidatedWhenChanging(value);
ReportPropertyChanging("LastValidatedWhen");
_LastValidatedWhen = StructuralObject.SetValidValue(value);
ReportPropertyChanged("LastValidatedWhen");
OnLastValidatedWhenChanged();
}
}
private Nullable<global::System.DateTime> _LastValidatedWhen;
partial void OnLastValidatedWhenChanging(Nullable<global::System.DateTime> value);
partial void OnLastValidatedWhenChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Guid> LastValidatedBy
{
get
{
return _LastValidatedBy;
}
set
{
OnLastValidatedByChanging(value);
ReportPropertyChanging("LastValidatedBy");
_LastValidatedBy = StructuralObject.SetValidValue(value);
ReportPropertyChanged("LastValidatedBy");
OnLastValidatedByChanged();
}
}
private Nullable<global::System.Guid> _LastValidatedBy;
partial void OnLastValidatedByChanging(Nullable<global::System.Guid> value);
partial void OnLastValidatedByChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[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
}
|