Click here to Skip to main content
11,573,935 members (70,626 online)
Click here to Skip to main content
Add your own
alternative version

Wrap Panel Virtualization

, 2 Jan 2012 CPOL 21.9K 3.4K 35
WrapPanel doesn't support virtualization. But we can improve the performance by simulating virtualization.
mediaassistant_bin-noexe.zip
MediaAssistant_bin.zip
MediaAssistant_src
DokanNet.dll
Id3Lib.dll
Media Assistant.exe
Media Assistant.exe.manifest
MediaAssistant.DAL.dll
MediaFS.dll
MefBasic.dll
Microsoft.Practices.Composite.dll
Microsoft.Practices.Composite.MefExtensions.dll
Microsoft.Practices.Composite.Presentation.dll
Microsoft.Practices.ServiceLocation.dll
Mp3Lib.dll
Newtonsoft.Json.Net35.dll
SharpZipLib.dll
Tags.dll
mediaassistant_src-noexe.zip
MediaAssistant_src.zip
DokanNet
Properties
Lib
CommonServiceLocation
Desktop
Microsoft.Practices.ServiceLocation.dll
CompositeApplicationLibrary
Desktop
Microsoft.Practices.Composite.dll
Microsoft.Practices.Composite.MefExtensions.dll
Microsoft.Practices.Composite.Presentation.dll
Dokan
dokan.lib
Moq
Desktop
Moq.dll
Mp3Lib
Id3Lib.dll
Mp3Lib.dll
SharpZipLib.dll
Newtonsoft
Newtonsoft.Json.Net35.dll
NUnit
nunit.framework.dll
MediaAssistant
MediaAssistant.csproj.user
MediaAssistant.ico
MusicAssistant_TemporaryKey.pfx
Constants
Controls
About
AddMovie
AlternativeLocation
BottomPanel
Dialog
LeftPanel
Library
MessageBox
MovieDetail
MovieList
MovieMiddlePanel
MovieResult
MovieSearchControl
MovieThumbnails
MusicList
MusicMiddlePanel
MusicSearchControl
PlayerControl
PlayingMusicInfo
PlaylistSelector
ProfileSelector
SendFeedback
SmartDJPreferance
SplashScreen
SplashPage.png
StatusMessageBar
TagEditor
TopPanel
WaitScreen
Converters
Data
EventArguments
HeaderImages
Close_act.png
Close_inact.png
Close_pr.png
Maximize_act.png
Maximize_inact.png
Maximize_pr.png
Minimize_act.png
Minimize_inact.png
Minimize_pr.png
Helper
Images
AcceptFolder.png
Actor.png
ActorLibrary.png
AddFolder.png
Album.png
Artist.png
Close.png
Composer.png
Default.png
DeleteFolder.png
Director.png
DrivesMovies.png
eye16.png
FailedToPlayMusic.png
Genre.png
IMDB.png
Library.png
ListView.png
Logo.png
Maximize.png
Menu.png
Mount.png
MovieBackground.jpg
MovieBackground.png
MovieFolder.png
MovieGenre.png
MovieLibrary.png
MoviePoster.png
Music.png
MusicAssistant.png
MusicLibrary.png
Mute.png
New.png
NewMovies.png
NoDJ.png
NonPlayingMusic.png
NormalShuffle.png
NoShuffle.png
NowPlayingMusic.png
PlayingMusic.png
playlist.png
PlayMovie.png
ProcessDone.png
ProcessFailed.png
Processing.png
Rated.png
Recent.png
RecommendedMovie.png
Restore.png
Runtime.png
SmartShuffle.png
Song.png
Star.png
Swap.png
ThumbnailView.png
Tools.png
TreeCollapse.png
TreeExpand.png
Unread.png
Volume.png
WatchList.png
WishList.png
Writer.png
Year.png
Management
MusicDJ
Properties
Settings.settings
Resources
MediaAssistant.DAL
MediaAssistant.sdf
MediaAssistantModels.edmx
Constants
DBUpdateScript
Helper
Properties
Settings.settings
DataSources
MusicAssistantEntities.datasource
TasteKidEntities.datasource
Virtualization
MediaAssistant.Setup
MusicAssistant.Setup.vdproj
MediaFS
DokanInstall_0.6.0.exe
Properties
MefBasic
Behaviors
Commans
Controls
Converters
Data
Extensions
Helper
Properties
Settings.settings
Themes
Threading
UserControls
Properties
TagClass
ASF Classes
Frames Classes
ID3
Properties
Text Files
//------------------------------------------------------------------------------
// <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("MediaAssistantModel", "FK_Music_ProfileMusic", "Music", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(MediaAssistant.DAL.Music), "ProfileMusic", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.ProfileMusic), true)]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "FK_Profile_ProfileMusic", "Profile", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(MediaAssistant.DAL.Profile), "ProfileMusic", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.ProfileMusic), true)]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "LibraryMusic", "LibraryItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.LibraryItem), "Music", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.Music))]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "ParentChild", "LibraryItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.LibraryItem), "LibraryItem1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.LibraryItem))]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "LibraryMovie", "LibraryItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.LibraryItem), "Movie", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.Movie))]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "FK_Movie_ProfileMovie", "Movie", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(MediaAssistant.DAL.Movie), "ProfileMovie", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.ProfileMovie), true)]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "FK_Profile_ProfileMovie", "Profile", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(MediaAssistant.DAL.Profile), "ProfileMovie", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.ProfileMovie), true)]
[assembly: EdmRelationshipAttribute("MediaAssistantModel", "FK_Movie_AlternativeLocation", "Movie", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(MediaAssistant.DAL.Movie), "AlternativeLocation", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(MediaAssistant.DAL.AlternativeLocation), true)]

#endregion

namespace MediaAssistant.DAL
{
    #region Contexts
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    public partial class MediaAssistantEntities : ObjectContext
    {
        #region Constructors
    
        /// <summary>
        /// Initializes a new MediaAssistantEntities object using the connection string found in the 'MediaAssistantEntities' section of the application configuration file.
        /// </summary>
        public MediaAssistantEntities() : base("name=MediaAssistantEntities", "MediaAssistantEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new MediaAssistantEntities object.
        /// </summary>
        public MediaAssistantEntities(string connectionString) : base(connectionString, "MediaAssistantEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new MediaAssistantEntities object.
        /// </summary>
        public MediaAssistantEntities(EntityConnection connection) : base(connection, "MediaAssistantEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        #endregion
    
        #region Partial Methods
    
        partial void OnContextCreated();
    
        #endregion
    
        #region ObjectSet Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<LibraryItem> LibraryItems
        {
            get
            {
                if ((_LibraryItems == null))
                {
                    _LibraryItems = base.CreateObjectSet<LibraryItem>("LibraryItems");
                }
                return _LibraryItems;
            }
        }
        private ObjectSet<LibraryItem> _LibraryItems;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Music> Musics
        {
            get
            {
                if ((_Musics == null))
                {
                    _Musics = base.CreateObjectSet<Music>("Musics");
                }
                return _Musics;
            }
        }
        private ObjectSet<Music> _Musics;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Profile> Profiles
        {
            get
            {
                if ((_Profiles == null))
                {
                    _Profiles = base.CreateObjectSet<Profile>("Profiles");
                }
                return _Profiles;
            }
        }
        private ObjectSet<Profile> _Profiles;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProfileMusic> ProfileMusics
        {
            get
            {
                if ((_ProfileMusics == null))
                {
                    _ProfileMusics = base.CreateObjectSet<ProfileMusic>("ProfileMusics");
                }
                return _ProfileMusics;
            }
        }
        private ObjectSet<ProfileMusic> _ProfileMusics;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ScannedDirectory> ScannedDirectories
        {
            get
            {
                if ((_ScannedDirectories == null))
                {
                    _ScannedDirectories = base.CreateObjectSet<ScannedDirectory>("ScannedDirectories");
                }
                return _ScannedDirectories;
            }
        }
        private ObjectSet<ScannedDirectory> _ScannedDirectories;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Movie> Movies
        {
            get
            {
                if ((_Movies == null))
                {
                    _Movies = base.CreateObjectSet<Movie>("Movies");
                }
                return _Movies;
            }
        }
        private ObjectSet<Movie> _Movies;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProfileMovie> ProfileMovies
        {
            get
            {
                if ((_ProfileMovies == null))
                {
                    _ProfileMovies = base.CreateObjectSet<ProfileMovie>("ProfileMovies");
                }
                return _ProfileMovies;
            }
        }
        private ObjectSet<ProfileMovie> _ProfileMovies;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<DBUpdate> DBUpdates
        {
            get
            {
                if ((_DBUpdates == null))
                {
                    _DBUpdates = base.CreateObjectSet<DBUpdate>("DBUpdates");
                }
                return _DBUpdates;
            }
        }
        private ObjectSet<DBUpdate> _DBUpdates;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecommendedMovie> RecommendedMovies
        {
            get
            {
                if ((_RecommendedMovies == null))
                {
                    _RecommendedMovies = base.CreateObjectSet<RecommendedMovie>("RecommendedMovies");
                }
                return _RecommendedMovies;
            }
        }
        private ObjectSet<RecommendedMovie> _RecommendedMovies;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AlternativeLocation> AlternativeLocations
        {
            get
            {
                if ((_AlternativeLocations == null))
                {
                    _AlternativeLocations = base.CreateObjectSet<AlternativeLocation>("AlternativeLocations");
                }
                return _AlternativeLocations;
            }
        }
        private ObjectSet<AlternativeLocation> _AlternativeLocations;

        #endregion
        #region AddTo Methods
    
        /// <summary>
        /// Deprecated Method for adding a new object to the LibraryItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToLibraryItems(LibraryItem libraryItem)
        {
            base.AddObject("LibraryItems", libraryItem);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Musics EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMusics(Music music)
        {
            base.AddObject("Musics", music);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Profiles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProfiles(Profile profile)
        {
            base.AddObject("Profiles", profile);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProfileMusics EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProfileMusics(ProfileMusic profileMusic)
        {
            base.AddObject("ProfileMusics", profileMusic);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ScannedDirectories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToScannedDirectories(ScannedDirectory scannedDirectory)
        {
            base.AddObject("ScannedDirectories", scannedDirectory);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Movies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMovies(Movie movie)
        {
            base.AddObject("Movies", movie);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProfileMovies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProfileMovies(ProfileMovie profileMovie)
        {
            base.AddObject("ProfileMovies", profileMovie);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the DBUpdates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToDBUpdates(DBUpdate dBUpdate)
        {
            base.AddObject("DBUpdates", dBUpdate);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecommendedMovies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecommendedMovies(RecommendedMovie recommendedMovie)
        {
            base.AddObject("RecommendedMovies", recommendedMovie);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AlternativeLocations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAlternativeLocations(AlternativeLocation alternativeLocation)
        {
            base.AddObject("AlternativeLocations", alternativeLocation);
        }

        #endregion
    }
    

    #endregion
    
    #region Entities
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="AlternativeLocation")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AlternativeLocation : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AlternativeLocation object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="movieId">Initial value of the MovieId property.</param>
        /// <param name="location">Initial value of the Location property.</param>
        public static AlternativeLocation CreateAlternativeLocation(global::System.Int32 id, global::System.Int32 movieId, global::System.String location)
        {
            AlternativeLocation alternativeLocation = new AlternativeLocation();
            alternativeLocation.Id = id;
            alternativeLocation.MovieId = movieId;
            alternativeLocation.Location = location;
            return alternativeLocation;
        }

        #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 Location
        {
            get
            {
                return _Location;
            }
            set
            {
                OnLocationChanging(value);
                ReportPropertyChanging("Location");
                _Location = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Location");
                OnLocationChanged();
            }
        }
        private global::System.String _Location;
        partial void OnLocationChanging(global::System.String value);
        partial void OnLocationChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Movie_AlternativeLocation", "Movie")]
        public Movie Movie
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Movie>("MediaAssistantModel.FK_Movie_AlternativeLocation", "Movie").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Movie>("MediaAssistantModel.FK_Movie_AlternativeLocation", "Movie").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Movie> MovieReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Movie>("MediaAssistantModel.FK_Movie_AlternativeLocation", "Movie");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Movie>("MediaAssistantModel.FK_Movie_AlternativeLocation", "Movie", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="DBUpdate")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class DBUpdate : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new DBUpdate object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        public static DBUpdate CreateDBUpdate(global::System.Int32 id)
        {
            DBUpdate dBUpdate = new DBUpdate();
            dBUpdate.Id = id;
            return dBUpdate;
        }

        #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=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();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> UpdateDate
        {
            get
            {
                return _UpdateDate;
            }
            set
            {
                OnUpdateDateChanging(value);
                ReportPropertyChanging("UpdateDate");
                _UpdateDate = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("UpdateDate");
                OnUpdateDateChanged();
            }
        }
        private Nullable<global::System.DateTime> _UpdateDate;
        partial void OnUpdateDateChanging(Nullable<global::System.DateTime> value);
        partial void OnUpdateDateChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="LibraryItem")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class LibraryItem : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new LibraryItem object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="index">Initial value of the Index property.</param>
        public static LibraryItem CreateLibraryItem(global::System.String id, global::System.Int32 index)
        {
            LibraryItem libraryItem = new LibraryItem();
            libraryItem.Id = id;
            libraryItem.Index = index;
            return libraryItem;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Title
        {
            get
            {
                return _Title;
            }
            set
            {
                OnTitleChanging(value);
                ReportPropertyChanging("Title");
                _Title = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Title");
                OnTitleChanged();
            }
        }
        private global::System.String _Title;
        partial void OnTitleChanging(global::System.String value);
        partial void OnTitleChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Type
        {
            get
            {
                return _Type;
            }
            set
            {
                OnTypeChanging(value);
                ReportPropertyChanging("Type");
                _Type = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Type");
                OnTypeChanged();
            }
        }
        private global::System.String _Type;
        partial void OnTypeChanging(global::System.String value);
        partial void OnTypeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Index
        {
            get
            {
                return _Index;
            }
            set
            {
                OnIndexChanging(value);
                ReportPropertyChanging("Index");
                _Index = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Index");
                OnIndexChanged();
            }
        }
        private global::System.Int32 _Index;
        partial void OnIndexChanging(global::System.Int32 value);
        partial void OnIndexChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> HasChildren
        {
            get
            {
                return _HasChildren;
            }
            set
            {
                OnHasChildrenChanging(value);
                ReportPropertyChanging("HasChildren");
                _HasChildren = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("HasChildren");
                OnHasChildrenChanged();
            }
        }
        private Nullable<global::System.Boolean> _HasChildren;
        partial void OnHasChildrenChanging(Nullable<global::System.Boolean> value);
        partial void OnHasChildrenChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "LibraryMusic", "Music")]
        public EntityCollection<Music> Musics
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Music>("MediaAssistantModel.LibraryMusic", "Music");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Music>("MediaAssistantModel.LibraryMusic", "Music", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "ParentChild", "LibraryItem1")]
        public EntityCollection<LibraryItem> Parents
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<LibraryItem>("MediaAssistantModel.ParentChild", "LibraryItem1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<LibraryItem>("MediaAssistantModel.ParentChild", "LibraryItem1", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "ParentChild", "LibraryItem")]
        public EntityCollection<LibraryItem> Children
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<LibraryItem>("MediaAssistantModel.ParentChild", "LibraryItem");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<LibraryItem>("MediaAssistantModel.ParentChild", "LibraryItem", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "LibraryMovie", "Movie")]
        public EntityCollection<Movie> Movies
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Movie>("MediaAssistantModel.LibraryMovie", "Movie");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Movie>("MediaAssistantModel.LibraryMovie", "Movie", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="Movie")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Movie : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Movie object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="playCount">Initial value of the PlayCount property.</param>
        public static Movie CreateMovie(global::System.Int32 id, global::System.Int32 playCount)
        {
            Movie movie = new Movie();
            movie.Id = id;
            movie.PlayCount = playCount;
            return movie;
        }

        #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=true)]
        [DataMemberAttribute()]
        public global::System.String Title
        {
            get
            {
                return _Title;
            }
            set
            {
                OnTitleChanging(value);
                ReportPropertyChanging("Title");
                _Title = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Title");
                OnTitleChanged();
            }
        }
        private global::System.String _Title;
        partial void OnTitleChanging(global::System.String value);
        partial void OnTitleChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Year
        {
            get
            {
                return _Year;
            }
            set
            {
                OnYearChanging(value);
                ReportPropertyChanging("Year");
                _Year = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Year");
                OnYearChanged();
            }
        }
        private Nullable<global::System.Int32> _Year;
        partial void OnYearChanging(Nullable<global::System.Int32> value);
        partial void OnYearChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Rated
        {
            get
            {
                return _Rated;
            }
            set
            {
                OnRatedChanging(value);
                ReportPropertyChanging("Rated");
                _Rated = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Rated");
                OnRatedChanged();
            }
        }
        private global::System.String _Rated;
        partial void OnRatedChanging(global::System.String value);
        partial void OnRatedChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Released
        {
            get
            {
                return _Released;
            }
            set
            {
                OnReleasedChanging(value);
                ReportPropertyChanging("Released");
                _Released = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Released");
                OnReleasedChanged();
            }
        }
        private Nullable<global::System.DateTime> _Released;
        partial void OnReleasedChanging(Nullable<global::System.DateTime> value);
        partial void OnReleasedChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Plot
        {
            get
            {
                return _Plot;
            }
            set
            {
                OnPlotChanging(value);
                ReportPropertyChanging("Plot");
                _Plot = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Plot");
                OnPlotChanged();
            }
        }
        private global::System.String _Plot;
        partial void OnPlotChanging(global::System.String value);
        partial void OnPlotChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Poster
        {
            get
            {
                return _Poster;
            }
            set
            {
                OnPosterChanging(value);
                ReportPropertyChanging("Poster");
                _Poster = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Poster");
                OnPosterChanged();
            }
        }
        private global::System.String _Poster;
        partial void OnPosterChanging(global::System.String value);
        partial void OnPosterChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Runtime
        {
            get
            {
                return _Runtime;
            }
            set
            {
                OnRuntimeChanging(value);
                ReportPropertyChanging("Runtime");
                _Runtime = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Runtime");
                OnRuntimeChanged();
            }
        }
        private global::System.String _Runtime;
        partial void OnRuntimeChanging(global::System.String value);
        partial void OnRuntimeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> Rating
        {
            get
            {
                return _Rating;
            }
            set
            {
                OnRatingChanging(value);
                ReportPropertyChanging("Rating");
                _Rating = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Rating");
                OnRatingChanged();
            }
        }
        private Nullable<global::System.Double> _Rating;
        partial void OnRatingChanging(Nullable<global::System.Double> value);
        partial void OnRatingChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Votes
        {
            get
            {
                return _Votes;
            }
            set
            {
                OnVotesChanging(value);
                ReportPropertyChanging("Votes");
                _Votes = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Votes");
                OnVotesChanged();
            }
        }
        private Nullable<global::System.Int32> _Votes;
        partial void OnVotesChanging(Nullable<global::System.Int32> value);
        partial void OnVotesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IMDBId
        {
            get
            {
                return _IMDBId;
            }
            set
            {
                OnIMDBIdChanging(value);
                ReportPropertyChanging("IMDBId");
                _IMDBId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("IMDBId");
                OnIMDBIdChanged();
            }
        }
        private global::System.String _IMDBId;
        partial void OnIMDBIdChanging(global::System.String value);
        partial void OnIMDBIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateDate
        {
            get
            {
                return _CreateDate;
            }
            set
            {
                OnCreateDateChanging(value);
                ReportPropertyChanging("CreateDate");
                _CreateDate = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateDate");
                OnCreateDateChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateDate;
        partial void OnCreateDateChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateDateChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FullPath
        {
            get
            {
                return _FullPath;
            }
            set
            {
                OnFullPathChanging(value);
                ReportPropertyChanging("FullPath");
                _FullPath = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("FullPath");
                OnFullPathChanged();
            }
        }
        private global::System.String _FullPath;
        partial void OnFullPathChanging(global::System.String value);
        partial void OnFullPathChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FileName
        {
            get
            {
                return _FileName;
            }
            set
            {
                OnFileNameChanging(value);
                ReportPropertyChanging("FileName");
                _FileName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("FileName");
                OnFileNameChanged();
            }
        }
        private global::System.String _FileName;
        partial void OnFileNameChanging(global::System.String value);
        partial void OnFileNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> Size
        {
            get
            {
                return _Size;
            }
            set
            {
                OnSizeChanging(value);
                ReportPropertyChanging("Size");
                _Size = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Size");
                OnSizeChanged();
            }
        }
        private Nullable<global::System.Decimal> _Size;
        partial void OnSizeChanging(Nullable<global::System.Decimal> value);
        partial void OnSizeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SizeText
        {
            get
            {
                return _SizeText;
            }
            set
            {
                OnSizeTextChanging(value);
                ReportPropertyChanging("SizeText");
                _SizeText = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SizeText");
                OnSizeTextChanged();
            }
        }
        private global::System.String _SizeText;
        partial void OnSizeTextChanging(global::System.String value);
        partial void OnSizeTextChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] PosterImage
        {
            get
            {
                return StructuralObject.GetValidValue(_PosterImage);
            }
            set
            {
                OnPosterImageChanging(value);
                ReportPropertyChanging("PosterImage");
                _PosterImage = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("PosterImage");
                OnPosterImageChanged();
            }
        }
        private global::System.Byte[] _PosterImage;
        partial void OnPosterImageChanging(global::System.Byte[] value);
        partial void OnPosterImageChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Status
        {
            get
            {
                return _Status;
            }
            set
            {
                OnStatusChanging(value);
                ReportPropertyChanging("Status");
                _Status = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Status");
                OnStatusChanged();
            }
        }
        private global::System.String _Status;
        partial void OnStatusChanging(global::System.String value);
        partial void OnStatusChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 PlayCount
        {
            get
            {
                return _PlayCount;
            }
            set
            {
                OnPlayCountChanging(value);
                ReportPropertyChanging("PlayCount");
                _PlayCount = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("PlayCount");
                OnPlayCountChanged();
            }
        }
        private global::System.Int32 _PlayCount;
        partial void OnPlayCountChanging(global::System.Int32 value);
        partial void OnPlayCountChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "LibraryMovie", "LibraryItem")]
        public EntityCollection<LibraryItem> LibraryItems
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<LibraryItem>("MediaAssistantModel.LibraryMovie", "LibraryItem");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<LibraryItem>("MediaAssistantModel.LibraryMovie", "LibraryItem", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Movie_ProfileMovie", "ProfileMovie")]
        public EntityCollection<ProfileMovie> ProfileMovies
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProfileMovie>("MediaAssistantModel.FK_Movie_ProfileMovie", "ProfileMovie");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProfileMovie>("MediaAssistantModel.FK_Movie_ProfileMovie", "ProfileMovie", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Movie_AlternativeLocation", "AlternativeLocation")]
        public EntityCollection<AlternativeLocation> AlternativeLocations
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AlternativeLocation>("MediaAssistantModel.FK_Movie_AlternativeLocation", "AlternativeLocation");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AlternativeLocation>("MediaAssistantModel.FK_Movie_AlternativeLocation", "AlternativeLocation", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="Music")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Music : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Music object.
        /// </summary>
        /// <param name="fileName">Initial value of the FileName property.</param>
        /// <param name="fullPath">Initial value of the FullPath property.</param>
        /// <param name="score">Initial value of the Score property.</param>
        /// <param name="id">Initial value of the Id property.</param>
        public static Music CreateMusic(global::System.String fileName, global::System.String fullPath, global::System.Decimal score, global::System.Int32 id)
        {
            Music music = new Music();
            music.FileName = fileName;
            music.FullPath = fullPath;
            music.Score = score;
            music.Id = id;
            return music;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FileName
        {
            get
            {
                return _FileName;
            }
            set
            {
                OnFileNameChanging(value);
                ReportPropertyChanging("FileName");
                _FileName = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("FileName");
                OnFileNameChanged();
            }
        }
        private global::System.String _FileName;
        partial void OnFileNameChanging(global::System.String value);
        partial void OnFileNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FullPath
        {
            get
            {
                return _FullPath;
            }
            set
            {
                OnFullPathChanging(value);
                ReportPropertyChanging("FullPath");
                _FullPath = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("FullPath");
                OnFullPathChanged();
            }
        }
        private global::System.String _FullPath;
        partial void OnFullPathChanging(global::System.String value);
        partial void OnFullPathChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Title
        {
            get
            {
                return _Title;
            }
            set
            {
                OnTitleChanging(value);
                ReportPropertyChanging("Title");
                _Title = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Title");
                OnTitleChanged();
            }
        }
        private global::System.String _Title;
        partial void OnTitleChanging(global::System.String value);
        partial void OnTitleChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Artist
        {
            get
            {
                return _Artist;
            }
            set
            {
                OnArtistChanging(value);
                ReportPropertyChanging("Artist");
                _Artist = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Artist");
                OnArtistChanged();
            }
        }
        private global::System.String _Artist;
        partial void OnArtistChanging(global::System.String value);
        partial void OnArtistChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Album
        {
            get
            {
                return _Album;
            }
            set
            {
                OnAlbumChanging(value);
                ReportPropertyChanging("Album");
                _Album = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Album");
                OnAlbumChanged();
            }
        }
        private global::System.String _Album;
        partial void OnAlbumChanging(global::System.String value);
        partial void OnAlbumChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Genre
        {
            get
            {
                return _Genre;
            }
            set
            {
                OnGenreChanging(value);
                ReportPropertyChanging("Genre");
                _Genre = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Genre");
                OnGenreChanged();
            }
        }
        private global::System.String _Genre;
        partial void OnGenreChanging(global::System.String value);
        partial void OnGenreChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Composer
        {
            get
            {
                return _Composer;
            }
            set
            {
                OnComposerChanging(value);
                ReportPropertyChanging("Composer");
                _Composer = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Composer");
                OnComposerChanged();
            }
        }
        private global::System.String _Composer;
        partial void OnComposerChanging(global::System.String value);
        partial void OnComposerChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> Size
        {
            get
            {
                return _Size;
            }
            set
            {
                OnSizeChanging(value);
                ReportPropertyChanging("Size");
                _Size = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Size");
                OnSizeChanged();
            }
        }
        private Nullable<global::System.Decimal> _Size;
        partial void OnSizeChanging(Nullable<global::System.Decimal> value);
        partial void OnSizeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SizeText
        {
            get
            {
                return _SizeText;
            }
            set
            {
                OnSizeTextChanging(value);
                ReportPropertyChanging("SizeText");
                _SizeText = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SizeText");
                OnSizeTextChanged();
            }
        }
        private global::System.String _SizeText;
        partial void OnSizeTextChanging(global::System.String value);
        partial void OnSizeTextChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> Time
        {
            get
            {
                return _Time;
            }
            set
            {
                OnTimeChanging(value);
                ReportPropertyChanging("Time");
                _Time = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Time");
                OnTimeChanged();
            }
        }
        private Nullable<global::System.Decimal> _Time;
        partial void OnTimeChanging(Nullable<global::System.Decimal> value);
        partial void OnTimeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TimeText
        {
            get
            {
                return _TimeText;
            }
            set
            {
                OnTimeTextChanging(value);
                ReportPropertyChanging("TimeText");
                _TimeText = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("TimeText");
                OnTimeTextChanged();
            }
        }
        private global::System.String _TimeText;
        partial void OnTimeTextChanging(global::System.String value);
        partial void OnTimeTextChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal Score
        {
            get
            {
                return _Score;
            }
            set
            {
                OnScoreChanging(value);
                ReportPropertyChanging("Score");
                _Score = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Score");
                OnScoreChanged();
            }
        }
        private global::System.Decimal _Score;
        partial void OnScoreChanging(global::System.Decimal value);
        partial void OnScoreChanged();
    
        /// <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();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Music_ProfileMusic", "ProfileMusic")]
        public EntityCollection<ProfileMusic> ProfileMusics
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProfileMusic>("MediaAssistantModel.FK_Music_ProfileMusic", "ProfileMusic");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProfileMusic>("MediaAssistantModel.FK_Music_ProfileMusic", "ProfileMusic", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "LibraryMusic", "LibraryItem")]
        public EntityCollection<LibraryItem> LibraryItems
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<LibraryItem>("MediaAssistantModel.LibraryMusic", "LibraryItem");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<LibraryItem>("MediaAssistantModel.LibraryMusic", "LibraryItem", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="Profile")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Profile : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Profile object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        public static Profile CreateProfile(global::System.Int32 id, global::System.String name)
        {
            Profile profile = new Profile();
            profile.Id = id;
            profile.Name = name;
            return profile;
        }

        #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 Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Profile_ProfileMusic", "ProfileMusic")]
        public EntityCollection<ProfileMusic> ProfileMusics
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProfileMusic>("MediaAssistantModel.FK_Profile_ProfileMusic", "ProfileMusic");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProfileMusic>("MediaAssistantModel.FK_Profile_ProfileMusic", "ProfileMusic", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Profile_ProfileMovie", "ProfileMovie")]
        public EntityCollection<ProfileMovie> ProfileMovies
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProfileMovie>("MediaAssistantModel.FK_Profile_ProfileMovie", "ProfileMovie");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProfileMovie>("MediaAssistantModel.FK_Profile_ProfileMovie", "ProfileMovie", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="ProfileMovie")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProfileMovie : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProfileMovie object.
        /// </summary>
        /// <param name="profileId">Initial value of the ProfileId property.</param>
        /// <param name="movieId">Initial value of the MovieId property.</param>
        /// <param name="watched">Initial value of the Watched property.</param>
        /// <param name="star">Initial value of the Star property.</param>
        /// <param name="playCount">Initial value of the PlayCount property.</param>
        public static ProfileMovie CreateProfileMovie(global::System.Int32 profileId, global::System.Int32 movieId, global::System.Boolean watched, global::System.Int32 star, global::System.Int32 playCount)
        {
            ProfileMovie profileMovie = new ProfileMovie();
            profileMovie.ProfileId = profileId;
            profileMovie.MovieId = movieId;
            profileMovie.Watched = watched;
            profileMovie.Star = star;
            profileMovie.PlayCount = playCount;
            return profileMovie;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ProfileId
        {
            get
            {
                return _ProfileId;
            }
            set
            {
                if (_ProfileId != value)
                {
                    OnProfileIdChanging(value);
                    ReportPropertyChanging("ProfileId");
                    _ProfileId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("ProfileId");
                    OnProfileIdChanged();
                }
            }
        }
        private global::System.Int32 _ProfileId;
        partial void OnProfileIdChanging(global::System.Int32 value);
        partial void OnProfileIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 MovieId
        {
            get
            {
                return _MovieId;
            }
            set
            {
                if (_MovieId != value)
                {
                    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.Boolean Watched
        {
            get
            {
                return _Watched;
            }
            set
            {
                OnWatchedChanging(value);
                ReportPropertyChanging("Watched");
                _Watched = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Watched");
                OnWatchedChanged();
            }
        }
        private global::System.Boolean _Watched;
        partial void OnWatchedChanging(global::System.Boolean value);
        partial void OnWatchedChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Star
        {
            get
            {
                return _Star;
            }
            set
            {
                OnStarChanging(value);
                ReportPropertyChanging("Star");
                _Star = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Star");
                OnStarChanged();
            }
        }
        private global::System.Int32 _Star;
        partial void OnStarChanging(global::System.Int32 value);
        partial void OnStarChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 PlayCount
        {
            get
            {
                return _PlayCount;
            }
            set
            {
                OnPlayCountChanging(value);
                ReportPropertyChanging("PlayCount");
                _PlayCount = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("PlayCount");
                OnPlayCountChanged();
            }
        }
        private global::System.Int32 _PlayCount;
        partial void OnPlayCountChanging(global::System.Int32 value);
        partial void OnPlayCountChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Unread
        {
            get
            {
                return _Unread;
            }
            set
            {
                OnUnreadChanging(value);
                ReportPropertyChanging("Unread");
                _Unread = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Unread");
                OnUnreadChanged();
            }
        }
        private Nullable<global::System.Boolean> _Unread;
        partial void OnUnreadChanging(Nullable<global::System.Boolean> value);
        partial void OnUnreadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Recommendation
        {
            get
            {
                return _Recommendation;
            }
            set
            {
                OnRecommendationChanging(value);
                ReportPropertyChanging("Recommendation");
                _Recommendation = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Recommendation");
                OnRecommendationChanged();
            }
        }
        private Nullable<global::System.Int32> _Recommendation;
        partial void OnRecommendationChanging(Nullable<global::System.Int32> value);
        partial void OnRecommendationChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> IsInWishList
        {
            get
            {
                return _IsInWishList;
            }
            set
            {
                OnIsInWishListChanging(value);
                ReportPropertyChanging("IsInWishList");
                _IsInWishList = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("IsInWishList");
                OnIsInWishListChanged();
            }
        }
        private Nullable<global::System.Boolean> _IsInWishList;
        partial void OnIsInWishListChanging(Nullable<global::System.Boolean> value);
        partial void OnIsInWishListChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> LastPlayed
        {
            get
            {
                return _LastPlayed;
            }
            set
            {
                OnLastPlayedChanging(value);
                ReportPropertyChanging("LastPlayed");
                _LastPlayed = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("LastPlayed");
                OnLastPlayedChanged();
            }
        }
        private Nullable<global::System.DateTime> _LastPlayed;
        partial void OnLastPlayedChanging(Nullable<global::System.DateTime> value);
        partial void OnLastPlayedChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Movie_ProfileMovie", "Movie")]
        public Movie Movie
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Movie>("MediaAssistantModel.FK_Movie_ProfileMovie", "Movie").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Movie>("MediaAssistantModel.FK_Movie_ProfileMovie", "Movie").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Movie> MovieReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Movie>("MediaAssistantModel.FK_Movie_ProfileMovie", "Movie");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Movie>("MediaAssistantModel.FK_Movie_ProfileMovie", "Movie", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Profile_ProfileMovie", "Profile")]
        public Profile Profile
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMovie", "Profile").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMovie", "Profile").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Profile> ProfileReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMovie", "Profile");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMovie", "Profile", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="ProfileMusic")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProfileMusic : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProfileMusic object.
        /// </summary>
        /// <param name="profileId">Initial value of the ProfileId property.</param>
        /// <param name="musicId">Initial value of the MusicId property.</param>
        /// <param name="score">Initial value of the Score property.</param>
        public static ProfileMusic CreateProfileMusic(global::System.Int32 profileId, global::System.Int32 musicId, global::System.Decimal score)
        {
            ProfileMusic profileMusic = new ProfileMusic();
            profileMusic.ProfileId = profileId;
            profileMusic.MusicId = musicId;
            profileMusic.Score = score;
            return profileMusic;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ProfileId
        {
            get
            {
                return _ProfileId;
            }
            set
            {
                if (_ProfileId != value)
                {
                    OnProfileIdChanging(value);
                    ReportPropertyChanging("ProfileId");
                    _ProfileId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("ProfileId");
                    OnProfileIdChanged();
                }
            }
        }
        private global::System.Int32 _ProfileId;
        partial void OnProfileIdChanging(global::System.Int32 value);
        partial void OnProfileIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 MusicId
        {
            get
            {
                return _MusicId;
            }
            set
            {
                if (_MusicId != value)
                {
                    OnMusicIdChanging(value);
                    ReportPropertyChanging("MusicId");
                    _MusicId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("MusicId");
                    OnMusicIdChanged();
                }
            }
        }
        private global::System.Int32 _MusicId;
        partial void OnMusicIdChanging(global::System.Int32 value);
        partial void OnMusicIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal Score
        {
            get
            {
                return _Score;
            }
            set
            {
                OnScoreChanging(value);
                ReportPropertyChanging("Score");
                _Score = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Score");
                OnScoreChanged();
            }
        }
        private global::System.Decimal _Score;
        partial void OnScoreChanging(global::System.Decimal value);
        partial void OnScoreChanged();

        #endregion
    
        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Music_ProfileMusic", "Music")]
        public Music Music
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Music>("MediaAssistantModel.FK_Music_ProfileMusic", "Music").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Music>("MediaAssistantModel.FK_Music_ProfileMusic", "Music").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Music> MusicReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Music>("MediaAssistantModel.FK_Music_ProfileMusic", "Music");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Music>("MediaAssistantModel.FK_Music_ProfileMusic", "Music", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("MediaAssistantModel", "FK_Profile_ProfileMusic", "Profile")]
        public Profile Profile
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMusic", "Profile").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMusic", "Profile").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Profile> ProfileReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMusic", "Profile");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Profile>("MediaAssistantModel.FK_Profile_ProfileMusic", "Profile", value);
                }
            }
        }

        #endregion
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="RecommendedMovie")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecommendedMovie : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecommendedMovie object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="queryTitle">Initial value of the QueryTitle property.</param>
        public static RecommendedMovie CreateRecommendedMovie(global::System.Int32 id, global::System.String queryTitle)
        {
            RecommendedMovie recommendedMovie = new RecommendedMovie();
            recommendedMovie.Id = id;
            recommendedMovie.QueryTitle = queryTitle;
            return recommendedMovie;
        }

        #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 QueryTitle
        {
            get
            {
                return _QueryTitle;
            }
            set
            {
                OnQueryTitleChanging(value);
                ReportPropertyChanging("QueryTitle");
                _QueryTitle = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("QueryTitle");
                OnQueryTitleChanged();
            }
        }
        private global::System.String _QueryTitle;
        partial void OnQueryTitleChanging(global::System.String value);
        partial void OnQueryTitleChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String RecommendedMovieTitle
        {
            get
            {
                return _RecommendedMovieTitle;
            }
            set
            {
                OnRecommendedMovieTitleChanging(value);
                ReportPropertyChanging("RecommendedMovieTitle");
                _RecommendedMovieTitle = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("RecommendedMovieTitle");
                OnRecommendedMovieTitleChanged();
            }
        }
        private global::System.String _RecommendedMovieTitle;
        partial void OnRecommendedMovieTitleChanging(global::System.String value);
        partial void OnRecommendedMovieTitleChanged();

        #endregion
    
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MediaAssistantModel", Name="ScannedDirectory")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ScannedDirectory : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ScannedDirectory object.
        /// </summary>
        /// <param name="fullPath">Initial value of the FullPath property.</param>
        /// <param name="keepEye">Initial value of the KeepEye property.</param>
        /// <param name="isScanned">Initial value of the IsScanned property.</param>
        /// <param name="isAddedByUser">Initial value of the IsAddedByUser property.</param>
        /// <param name="isSystemFolder">Initial value of the IsSystemFolder property.</param>
        public static ScannedDirectory CreateScannedDirectory(global::System.String fullPath, global::System.Boolean keepEye, global::System.Boolean isScanned, global::System.Boolean isAddedByUser, global::System.Boolean isSystemFolder)
        {
            ScannedDirectory scannedDirectory = new ScannedDirectory();
            scannedDirectory.FullPath = fullPath;
            scannedDirectory.KeepEye = keepEye;
            scannedDirectory.IsScanned = isScanned;
            scannedDirectory.IsAddedByUser = isAddedByUser;
            scannedDirectory.IsSystemFolder = isSystemFolder;
            return scannedDirectory;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FullPath
        {
            get
            {
                return _FullPath;
            }
            set
            {
                if (_FullPath != value)
                {
                    OnFullPathChanging(value);
                    ReportPropertyChanging("FullPath");
                    _FullPath = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("FullPath");
                    OnFullPathChanged();
                }
            }
        }
        private global::System.String _FullPath;
        partial void OnFullPathChanging(global::System.String value);
        partial void OnFullPathChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean KeepEye
        {
            get
            {
                return _KeepEye;
            }
            set
            {
                OnKeepEyeChanging(value);
                ReportPropertyChanging("KeepEye");
                _KeepEye = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("KeepEye");
                OnKeepEyeChanged();
            }
        }
        private global::System.Boolean _KeepEye;
        partial void OnKeepEyeChanging(global::System.Boolean value);
        partial void OnKeepEyeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean IsScanned
        {
            get
            {
                return _IsScanned;
            }
            set
            {
                OnIsScannedChanging(value);
                ReportPropertyChanging("IsScanned");
                _IsScanned = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("IsScanned");
                OnIsScannedChanged();
            }
        }
        private global::System.Boolean _IsScanned;
        partial void OnIsScannedChanging(global::System.Boolean value);
        partial void OnIsScannedChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> LastScanned
        {
            get
            {
                return _LastScanned;
            }
            set
            {
                OnLastScannedChanging(value);
                ReportPropertyChanging("LastScanned");
                _LastScanned = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("LastScanned");
                OnLastScannedChanged();
            }
        }
        private Nullable<global::System.DateTime> _LastScanned;
        partial void OnLastScannedChanging(Nullable<global::System.DateTime> value);
        partial void OnLastScannedChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean IsAddedByUser
        {
            get
            {
                return _IsAddedByUser;
            }
            set
            {
                OnIsAddedByUserChanging(value);
                ReportPropertyChanging("IsAddedByUser");
                _IsAddedByUser = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("IsAddedByUser");
                OnIsAddedByUserChanged();
            }
        }
        private global::System.Boolean _IsAddedByUser;
        partial void OnIsAddedByUserChanging(global::System.Boolean value);
        partial void OnIsAddedByUserChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean IsSystemFolder
        {
            get
            {
                return _IsSystemFolder;
            }
            set
            {
                OnIsSystemFolderChanging(value);
                ReportPropertyChanging("IsSystemFolder");
                _IsSystemFolder = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("IsSystemFolder");
                OnIsSystemFolderChanged();
            }
        }
        private global::System.Boolean _IsSystemFolder;
        partial void OnIsSystemFolderChanging(global::System.Boolean value);
        partial void OnIsSystemFolderChanged();

        #endregion
    
    }

    #endregion
    
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

H. S. Masud
Software Developer (Senior) KAZ Software Limited
Bangladesh Bangladesh
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150624.2 | Last Updated 2 Jan 2012
Article Copyright 2012 by H. S. Masud
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid