ExampleModel.Designer.cs
Dosyayı İndir
//------------------------------------------------------------------------------
// <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()]
namespace ExampleWebApplication
{
#region Contexts
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public partial class DesktopEntities : ObjectContext
{
#region Constructors
/// <summary>
/// Initializes a new DesktopEntities object using the connection string found in the 'DesktopEntities' section of the application configuration file.
/// </summary>
public DesktopEntities() : base("name=DesktopEntities", "DesktopEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new DesktopEntities object.
/// </summary>
public DesktopEntities(string connectionString) : base(connectionString, "DesktopEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
/// <summary>
/// Initialize a new DesktopEntities object.
/// </summary>
public DesktopEntities(EntityConnection connection) : base(connection, "DesktopEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
public ObjectSet<Example> Examples
{
get
{
if ((_Examples == null))
{
_Examples = base.CreateObjectSet<Example>("Examples");
}
return _Examples;
}
}
private ObjectSet<Example> _Examples;
#endregion
#region AddTo Methods
/// <summary>
/// Deprecated Method for adding a new object to the Examples EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
/// </summary>
public void AddToExamples(Example example)
{
base.AddObject("Examples", example);
}
#endregion
}
#endregion
#region Entities
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmEntityTypeAttribute(NamespaceName="DesktopModel", Name="Example")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Example : EntityObject
{
#region Factory Method
/// <summary>
/// Create a new Example object.
/// </summary>
/// <param name="exampleId">Initial value of the ExampleId property.</param>
public static Example CreateExample(global::System.Int64 exampleId)
{
Example example = new Example();
example.ExampleId = exampleId;
return example;
}
#endregion
#region Primitive Properties
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int64 ExampleId
{
get
{
return _ExampleId;
}
set
{
if (_ExampleId != value)
{
OnExampleIdChanging(value);
ReportPropertyChanging("ExampleId");
_ExampleId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("ExampleId");
OnExampleIdChanged();
}
}
}
private global::System.Int64 _ExampleId;
partial void OnExampleIdChanging(global::System.Int64 value);
partial void OnExampleIdChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String ExampleName
{
get
{
return _ExampleName;
}
set
{
OnExampleNameChanging(value);
ReportPropertyChanging("ExampleName");
_ExampleName = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("ExampleName");
OnExampleNameChanged();
}
}
private global::System.String _ExampleName;
partial void OnExampleNameChanging(global::System.String value);
partial void OnExampleNameChanged();
/// <summary>
/// No Metadata Documentation available.
/// </summary>
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::System.Double> ExampleValue
{
get
{
return _ExampleValue;
}
set
{
OnExampleValueChanging(value);
ReportPropertyChanging("ExampleValue");
_ExampleValue = StructuralObject.SetValidValue(value);
ReportPropertyChanged("ExampleValue");
OnExampleValueChanged();
}
}
private Nullable<global::System.Double> _ExampleValue;
partial void OnExampleValueChanging(Nullable<global::System.Double> value);
partial void OnExampleValueChanged();
#endregion
}
#endregion
}
Dosyayı İndir