|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
// Original file name:
// Generation date: 2/10/2008 2:59:49 PM
namespace MyStoreModel
{
/// <summary>
/// There are no comments for MyStoreEntities in the schema.
/// </summary>
public partial class MyStoreEntities : global::System.Data.Objects.ObjectContext
{
/// <summary>
/// Initializes a new MyStoreEntities object using the connection string found in the 'MyStoreEntities' section of the application configuration file.
/// </summary>
public MyStoreEntities() :
base("name=MyStoreEntities", "MyStoreEntities")
{
}
/// <summary>
/// Initialize a new MyStoreEntities object.
/// </summary>
public MyStoreEntities(string connectionString) :
base(connectionString, "MyStoreEntities")
{
}
/// <summary>
/// Initialize a new MyStoreEntities object.
/// </summary>
public MyStoreEntities(global::System.Data.EntityClient.EntityConnection connection) :
base(connection, "MyStoreEntities")
{
}
/// <summary>
/// There are no comments for Products in the schema.
/// </summary>
[global::System.ComponentModel.BrowsableAttribute(false)]
public global::System.Data.Objects.ObjectQuery<Products> Products
{
get
{
if ((this._Products == null))
{
this._Products = base.CreateQuery<Products>("[Products]");
}
return this._Products;
}
}
private global::System.Data.Objects.ObjectQuery<Products> _Products;
/// <summary>
/// There are no comments for Products in the schema.
/// </summary>
public void AddToProducts(Products products)
{
base.AddObject("Products", products);
}
}
/// <summary>
/// There are no comments for MyStoreModel.Products in the schema.
/// </summary>
/// <KeyProperties>
/// ProductID
/// </KeyProperties>
[global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="MyStoreModel", Name="Products")]
[global::System.Runtime.Serialization.DataContractAttribute()]
[global::System.Serializable()]
public partial class Products : global::System.Data.Objects.DataClasses.EntityObject
{
/// <summary>
/// Create a new Products object.
/// </summary>
/// <param name="productID">Initial value of ProductID.</param>
public static Products CreateProducts(int productID)
{
Products products = new Products();
products.ProductID = productID;
return products;
}
/// <summary>
/// There are no comments for Property ProductID in the schema.
/// </summary>
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int ProductID
{
get
{
return this._ProductID;
}
set
{
this.OnProductIDChanging(value);
this.ReportPropertyChanging("ProductID");
this._ProductID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("ProductID");
this.OnProductIDChanged();
}
}
private int _ProductID;
partial void OnProductIDChanging(int value);
partial void OnProductIDChanged();
/// <summary>
/// There are no comments for Property ProductName in the schema.
/// </summary>
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string ProductName
{
get
{
return this._ProductName;
}
set
{
this.OnProductNameChanging(value);
this.ReportPropertyChanging("ProductName");
this._ProductName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true, 50);
this.ReportPropertyChanged("ProductName");
this.OnProductNameChanged();
}
}
private string _ProductName;
partial void OnProductNameChanging(string value);
partial void OnProductNameChanged();
}
}
|
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.