-Updated source code to VS2010
-Updated main project to .NET 4.0 -Updated to psake 4.0 -Changed assembly version to 4.0.0.0 -Added ICustomTypeDescriptor implementation to JObject, removed JTypeDescriptionProvider and JTypeDescriptor -Changed serialization of collections to use iterator rather than indexer -Removed Compact Framework project -Fixed XML documentation warnings
This commit is contained in:
+260
-185
@@ -1,116 +1,150 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// 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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
|
||||
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DataServicesTestDatabaseModel", "FK_File_Folder", "Folder", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Newtonsoft.Json.Tests.Folder), "File", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Newtonsoft.Json.Tests.File))]
|
||||
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DataServicesTestDatabaseModel", "FK_Folder_Folder", "Folder", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Newtonsoft.Json.Tests.Folder), "Folder1", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Newtonsoft.Json.Tests.Folder))]
|
||||
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("DataServicesTestDatabaseModel", "FK_File_Folder", "Folder", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Newtonsoft.Json.Tests.Folder), "File", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Newtonsoft.Json.Tests.File))]
|
||||
[assembly: EdmRelationshipAttribute("DataServicesTestDatabaseModel", "FK_Folder_Folder", "Folder", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Newtonsoft.Json.Tests.Folder), "Folder1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Newtonsoft.Json.Tests.Folder))]
|
||||
|
||||
#endregion
|
||||
|
||||
// Original file name:
|
||||
// Generation date: 26/07/2009 4:51:53 p.m.
|
||||
namespace Newtonsoft.Json.Tests
|
||||
{
|
||||
#region Contexts
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for DataServicesTestDatabaseEntities in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
public partial class DataServicesTestDatabaseEntities : global::System.Data.Objects.ObjectContext
|
||||
public partial class DataServicesTestDatabaseEntities : ObjectContext
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new DataServicesTestDatabaseEntities object using the connection string found in the 'DataServicesTestDatabaseEntities' section of the application configuration file.
|
||||
/// </summary>
|
||||
public DataServicesTestDatabaseEntities() :
|
||||
base("name=DataServicesTestDatabaseEntities", "DataServicesTestDatabaseEntities")
|
||||
public DataServicesTestDatabaseEntities() : base("name=DataServicesTestDatabaseEntities", "DataServicesTestDatabaseEntities")
|
||||
{
|
||||
this.OnContextCreated();
|
||||
OnContextCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize a new DataServicesTestDatabaseEntities object.
|
||||
/// </summary>
|
||||
public DataServicesTestDatabaseEntities(string connectionString) :
|
||||
base(connectionString, "DataServicesTestDatabaseEntities")
|
||||
public DataServicesTestDatabaseEntities(string connectionString) : base(connectionString, "DataServicesTestDatabaseEntities")
|
||||
{
|
||||
this.OnContextCreated();
|
||||
OnContextCreated();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize a new DataServicesTestDatabaseEntities object.
|
||||
/// </summary>
|
||||
public DataServicesTestDatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) :
|
||||
base(connection, "DataServicesTestDatabaseEntities")
|
||||
public DataServicesTestDatabaseEntities(EntityConnection connection) : base(connection, "DataServicesTestDatabaseEntities")
|
||||
{
|
||||
this.OnContextCreated();
|
||||
OnContextCreated();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Partial Methods
|
||||
|
||||
partial void OnContextCreated();
|
||||
|
||||
#endregion
|
||||
|
||||
#region ObjectSet Properties
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for File in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
public global::System.Data.Objects.ObjectQuery<File> File
|
||||
public ObjectSet<File> File
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((this._File == null))
|
||||
if ((_File == null))
|
||||
{
|
||||
this._File = base.CreateQuery<File>("[File]");
|
||||
_File = base.CreateObjectSet<File>("File");
|
||||
}
|
||||
return this._File;
|
||||
return _File;
|
||||
}
|
||||
}
|
||||
private global::System.Data.Objects.ObjectQuery<File> _File;
|
||||
private ObjectSet<File> _File;
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Folder in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
public global::System.Data.Objects.ObjectQuery<Folder> Folder
|
||||
public ObjectSet<Folder> Folder
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((this._Folder == null))
|
||||
if ((_Folder == null))
|
||||
{
|
||||
this._Folder = base.CreateQuery<Folder>("[Folder]");
|
||||
_Folder = base.CreateObjectSet<Folder>("Folder");
|
||||
}
|
||||
return this._Folder;
|
||||
return _Folder;
|
||||
}
|
||||
}
|
||||
private global::System.Data.Objects.ObjectQuery<Folder> _Folder;
|
||||
private ObjectSet<Folder> _Folder;
|
||||
|
||||
#endregion
|
||||
#region AddTo Methods
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for File in the schema.
|
||||
/// Deprecated Method for adding a new object to the File EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
||||
/// </summary>
|
||||
public void AddToFile(File file)
|
||||
{
|
||||
base.AddObject("File", file);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Folder in the schema.
|
||||
/// Deprecated Method for adding a new object to the Folder EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
||||
/// </summary>
|
||||
public void AddToFolder(Folder folder)
|
||||
{
|
||||
base.AddObject("Folder", folder);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Entities
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for DataServicesTestDatabaseModel.File in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
/// <KeyProperties>
|
||||
/// FileId
|
||||
/// </KeyProperties>
|
||||
[global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DataServicesTestDatabaseModel", Name="File")]
|
||||
[global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
|
||||
[global::System.Serializable()]
|
||||
public partial class File : global::System.Data.Objects.DataClasses.EntityObject
|
||||
[EdmEntityTypeAttribute(NamespaceName="DataServicesTestDatabaseModel", Name="File")]
|
||||
[Serializable()]
|
||||
[DataContractAttribute(IsReference=true)]
|
||||
public partial class File : EntityObject
|
||||
{
|
||||
#region Factory Method
|
||||
|
||||
/// <summary>
|
||||
/// Create a new File object.
|
||||
/// </summary>
|
||||
/// <param name="fileId">Initial value of FileId.</param>
|
||||
/// <param name="name">Initial value of Name.</param>
|
||||
/// <param name="description">Initial value of Description.</param>
|
||||
/// <param name="createdDate">Initial value of CreatedDate.</param>
|
||||
public static File CreateFile(global::System.Guid fileId, string name, string description, global::System.DateTime createdDate)
|
||||
/// <param name="fileId">Initial value of the FileId property.</param>
|
||||
/// <param name="name">Initial value of the Name property.</param>
|
||||
/// <param name="description">Initial value of the Description property.</param>
|
||||
/// <param name="createdDate">Initial value of the CreatedDate property.</param>
|
||||
public static File CreateFile(global::System.Guid fileId, global::System.String name, global::System.String description, global::System.DateTime createdDate)
|
||||
{
|
||||
File file = new File();
|
||||
file.FileId = fileId;
|
||||
@@ -119,331 +153,372 @@ namespace Newtonsoft.Json.Tests
|
||||
file.CreatedDate = createdDate;
|
||||
return file;
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region Primitive Properties
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property FileId in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.Guid FileId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FileId;
|
||||
return _FileId;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnFileIdChanging(value);
|
||||
this.ReportPropertyChanging("FileId");
|
||||
this._FileId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
|
||||
this.ReportPropertyChanged("FileId");
|
||||
this.OnFileIdChanged();
|
||||
if (_FileId != value)
|
||||
{
|
||||
OnFileIdChanging(value);
|
||||
ReportPropertyChanging("FileId");
|
||||
_FileId = StructuralObject.SetValidValue(value);
|
||||
ReportPropertyChanged("FileId");
|
||||
OnFileIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
private global::System.Guid _FileId;
|
||||
partial void OnFileIdChanging(global::System.Guid value);
|
||||
partial void OnFileIdChanged();
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property Name in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public string Name
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.String Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Name;
|
||||
return _Name;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnNameChanging(value);
|
||||
this.ReportPropertyChanging("Name");
|
||||
this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
|
||||
this.ReportPropertyChanged("Name");
|
||||
this.OnNameChanged();
|
||||
OnNameChanging(value);
|
||||
ReportPropertyChanging("Name");
|
||||
_Name = StructuralObject.SetValidValue(value, false);
|
||||
ReportPropertyChanged("Name");
|
||||
OnNameChanged();
|
||||
}
|
||||
}
|
||||
private string _Name;
|
||||
partial void OnNameChanging(string value);
|
||||
private global::System.String _Name;
|
||||
partial void OnNameChanging(global::System.String value);
|
||||
partial void OnNameChanged();
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property Description in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public string Description
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.String Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Description;
|
||||
return _Description;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnDescriptionChanging(value);
|
||||
this.ReportPropertyChanging("Description");
|
||||
this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
|
||||
this.ReportPropertyChanged("Description");
|
||||
this.OnDescriptionChanged();
|
||||
OnDescriptionChanging(value);
|
||||
ReportPropertyChanging("Description");
|
||||
_Description = StructuralObject.SetValidValue(value, false);
|
||||
ReportPropertyChanged("Description");
|
||||
OnDescriptionChanged();
|
||||
}
|
||||
}
|
||||
private string _Description;
|
||||
partial void OnDescriptionChanging(string value);
|
||||
private global::System.String _Description;
|
||||
partial void OnDescriptionChanging(global::System.String value);
|
||||
partial void OnDescriptionChanged();
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property CreatedDate in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.DateTime CreatedDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CreatedDate;
|
||||
return _CreatedDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnCreatedDateChanging(value);
|
||||
this.ReportPropertyChanging("CreatedDate");
|
||||
this._CreatedDate = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
|
||||
this.ReportPropertyChanged("CreatedDate");
|
||||
this.OnCreatedDateChanged();
|
||||
OnCreatedDateChanging(value);
|
||||
ReportPropertyChanging("CreatedDate");
|
||||
_CreatedDate = StructuralObject.SetValidValue(value);
|
||||
ReportPropertyChanged("CreatedDate");
|
||||
OnCreatedDateChanged();
|
||||
}
|
||||
}
|
||||
private global::System.DateTime _CreatedDate;
|
||||
partial void OnCreatedDateChanging(global::System.DateTime value);
|
||||
partial void OnCreatedDateChanged();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Navigation Properties
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Folder in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_File_Folder", "Folder")]
|
||||
[global::System.Xml.Serialization.XmlIgnoreAttribute()]
|
||||
[global::System.Xml.Serialization.SoapIgnoreAttribute()]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
[XmlIgnoreAttribute()]
|
||||
[SoapIgnoreAttribute()]
|
||||
[DataMemberAttribute()]
|
||||
[EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_File_Folder", "Folder")]
|
||||
public Folder Folder
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder").Value;
|
||||
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder").Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder").Value = value;
|
||||
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder").Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// There are no comments for Folder in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.BrowsableAttribute(false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public global::System.Data.Objects.DataClasses.EntityReference<Folder> FolderReference
|
||||
[BrowsableAttribute(false)]
|
||||
[DataMemberAttribute()]
|
||||
public EntityReference<Folder> FolderReference
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder");
|
||||
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder");
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((value != null))
|
||||
{
|
||||
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder", value);
|
||||
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_File_Folder", "Folder", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for DataServicesTestDatabaseModel.Folder in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
/// <KeyProperties>
|
||||
/// FolderId
|
||||
/// </KeyProperties>
|
||||
[global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DataServicesTestDatabaseModel", Name="Folder")]
|
||||
[global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
|
||||
[global::System.Serializable()]
|
||||
public partial class Folder : global::System.Data.Objects.DataClasses.EntityObject
|
||||
[EdmEntityTypeAttribute(NamespaceName="DataServicesTestDatabaseModel", Name="Folder")]
|
||||
[Serializable()]
|
||||
[DataContractAttribute(IsReference=true)]
|
||||
public partial class Folder : EntityObject
|
||||
{
|
||||
#region Factory Method
|
||||
|
||||
/// <summary>
|
||||
/// Create a new Folder object.
|
||||
/// </summary>
|
||||
/// <param name="folderId">Initial value of FolderId.</param>
|
||||
/// <param name="name">Initial value of Name.</param>
|
||||
/// <param name="createdDate">Initial value of CreatedDate.</param>
|
||||
public static Folder CreateFolder(global::System.Guid folderId, string name, global::System.DateTime createdDate)
|
||||
/// <param name="folderId">Initial value of the FolderId property.</param>
|
||||
/// <param name="name">Initial value of the Name property.</param>
|
||||
/// <param name="description">Initial value of the Description property.</param>
|
||||
/// <param name="createdDate">Initial value of the CreatedDate property.</param>
|
||||
public static Folder CreateFolder(global::System.Guid folderId, global::System.String name, global::System.String description, global::System.DateTime createdDate)
|
||||
{
|
||||
Folder folder = new Folder();
|
||||
folder.FolderId = folderId;
|
||||
folder.Name = name;
|
||||
folder.Description = description;
|
||||
folder.CreatedDate = createdDate;
|
||||
return folder;
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region Primitive Properties
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property FolderId in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.Guid FolderId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FolderId;
|
||||
return _FolderId;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnFolderIdChanging(value);
|
||||
this.ReportPropertyChanging("FolderId");
|
||||
this._FolderId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
|
||||
this.ReportPropertyChanged("FolderId");
|
||||
this.OnFolderIdChanged();
|
||||
if (_FolderId != value)
|
||||
{
|
||||
OnFolderIdChanging(value);
|
||||
ReportPropertyChanging("FolderId");
|
||||
_FolderId = StructuralObject.SetValidValue(value);
|
||||
ReportPropertyChanged("FolderId");
|
||||
OnFolderIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
private global::System.Guid _FolderId;
|
||||
partial void OnFolderIdChanging(global::System.Guid value);
|
||||
partial void OnFolderIdChanged();
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property Name in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public string Name
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.String Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Name;
|
||||
return _Name;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnNameChanging(value);
|
||||
this.ReportPropertyChanging("Name");
|
||||
this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
|
||||
this.ReportPropertyChanged("Name");
|
||||
this.OnNameChanged();
|
||||
OnNameChanging(value);
|
||||
ReportPropertyChanging("Name");
|
||||
_Name = StructuralObject.SetValidValue(value, false);
|
||||
ReportPropertyChanged("Name");
|
||||
OnNameChanged();
|
||||
}
|
||||
}
|
||||
private string _Name;
|
||||
partial void OnNameChanging(string value);
|
||||
private global::System.String _Name;
|
||||
partial void OnNameChanging(global::System.String value);
|
||||
partial void OnNameChanged();
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property Description in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public string Description
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.String Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Description;
|
||||
return _Description;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnDescriptionChanging(value);
|
||||
this.ReportPropertyChanging("Description");
|
||||
this._Description = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
|
||||
this.ReportPropertyChanged("Description");
|
||||
this.OnDescriptionChanged();
|
||||
OnDescriptionChanging(value);
|
||||
ReportPropertyChanging("Description");
|
||||
_Description = StructuralObject.SetValidValue(value, false);
|
||||
ReportPropertyChanged("Description");
|
||||
OnDescriptionChanged();
|
||||
}
|
||||
}
|
||||
private string _Description;
|
||||
partial void OnDescriptionChanging(string value);
|
||||
private global::System.String _Description;
|
||||
partial void OnDescriptionChanging(global::System.String value);
|
||||
partial void OnDescriptionChanged();
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Property CreatedDate in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
||||
[DataMemberAttribute()]
|
||||
public global::System.DateTime CreatedDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CreatedDate;
|
||||
return _CreatedDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnCreatedDateChanging(value);
|
||||
this.ReportPropertyChanging("CreatedDate");
|
||||
this._CreatedDate = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
|
||||
this.ReportPropertyChanged("CreatedDate");
|
||||
this.OnCreatedDateChanged();
|
||||
OnCreatedDateChanging(value);
|
||||
ReportPropertyChanging("CreatedDate");
|
||||
_CreatedDate = StructuralObject.SetValidValue(value);
|
||||
ReportPropertyChanged("CreatedDate");
|
||||
OnCreatedDateChanged();
|
||||
}
|
||||
}
|
||||
private global::System.DateTime _CreatedDate;
|
||||
partial void OnCreatedDateChanging(global::System.DateTime value);
|
||||
partial void OnCreatedDateChanged();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Navigation Properties
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for Files in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_File_Folder", "File")]
|
||||
[global::System.Xml.Serialization.XmlIgnoreAttribute()]
|
||||
[global::System.Xml.Serialization.SoapIgnoreAttribute()]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public global::System.Data.Objects.DataClasses.EntityCollection<File> Files
|
||||
[XmlIgnoreAttribute()]
|
||||
[SoapIgnoreAttribute()]
|
||||
[DataMemberAttribute()]
|
||||
[EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_File_Folder", "File")]
|
||||
public EntityCollection<File> Files
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<File>("DataServicesTestDatabaseModel.FK_File_Folder", "File");
|
||||
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<File>("DataServicesTestDatabaseModel.FK_File_Folder", "File");
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((value != null))
|
||||
{
|
||||
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<File>("DataServicesTestDatabaseModel.FK_File_Folder", "File", value);
|
||||
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<File>("DataServicesTestDatabaseModel.FK_File_Folder", "File", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for ChildFolders in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_Folder_Folder", "Folder1")]
|
||||
[global::System.Xml.Serialization.XmlIgnoreAttribute()]
|
||||
[global::System.Xml.Serialization.SoapIgnoreAttribute()]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public global::System.Data.Objects.DataClasses.EntityCollection<Folder> ChildFolders
|
||||
[XmlIgnoreAttribute()]
|
||||
[SoapIgnoreAttribute()]
|
||||
[DataMemberAttribute()]
|
||||
[EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_Folder_Folder", "Folder1")]
|
||||
public EntityCollection<Folder> ChildFolders
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder1");
|
||||
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder1");
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((value != null))
|
||||
{
|
||||
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder1", value);
|
||||
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder1", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// There are no comments for ParentFolder in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_Folder_Folder", "Folder")]
|
||||
[global::System.Xml.Serialization.XmlIgnoreAttribute()]
|
||||
[global::System.Xml.Serialization.SoapIgnoreAttribute()]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
[XmlIgnoreAttribute()]
|
||||
[SoapIgnoreAttribute()]
|
||||
[DataMemberAttribute()]
|
||||
[EdmRelationshipNavigationPropertyAttribute("DataServicesTestDatabaseModel", "FK_Folder_Folder", "Folder")]
|
||||
public Folder ParentFolder
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder").Value;
|
||||
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder").Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder").Value = value;
|
||||
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder").Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// There are no comments for ParentFolder in the schema.
|
||||
/// No Metadata Documentation available.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.BrowsableAttribute(false)]
|
||||
[global::System.Runtime.Serialization.DataMemberAttribute()]
|
||||
public global::System.Data.Objects.DataClasses.EntityReference<Folder> ParentFolderReference
|
||||
[BrowsableAttribute(false)]
|
||||
[DataMemberAttribute()]
|
||||
public EntityReference<Folder> ParentFolderReference
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder");
|
||||
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder");
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((value != null))
|
||||
{
|
||||
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder", value);
|
||||
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Folder>("DataServicesTestDatabaseModel.FK_Folder_Folder", "Folder", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user