C# Класс Acme.Northwind.EFDAL.NorthwindEntities

Наследование: System.Data.Objects.ObjectContext, Acme.Northwind.EFDAL.Interfaces.INorthwindEntities, nHydrate.EFCore.DataAccess.IContext
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_alphabeticallistofproducts System.Data.Objects.ObjectSet
_category System.Data.Objects.ObjectSet
_categorysalesfor1997 System.Data.Objects.ObjectSet
_contextStartup ContextStartup
_currentproductlist System.Data.Objects.ObjectSet
_customer System.Data.Objects.ObjectSet
_customerandsuppliersbycity System.Data.Objects.ObjectSet
_customercustomerdemo System.Data.Objects.ObjectSet
_customerdemographic System.Data.Objects.ObjectSet
_employee System.Data.Objects.ObjectSet
_employeeterritorie System.Data.Objects.ObjectSet
_invoices System.Data.Objects.ObjectSet
_order System.Data.Objects.ObjectSet
_orderdetail System.Data.Objects.ObjectSet
_orderdetailsextended System.Data.Objects.ObjectSet
_ordersqry System.Data.Objects.ObjectSet
_ordersubtotals System.Data.Objects.ObjectSet
_product System.Data.Objects.ObjectSet
_productsaboveaverageprice System.Data.Objects.ObjectSet
_productsalesfor1997 System.Data.Objects.ObjectSet
_productsbycategory System.Data.Objects.ObjectSet
_quarterlyorders System.Data.Objects.ObjectSet
_region System.Data.Objects.ObjectSet
_salesbycategory System.Data.Objects.ObjectSet
_salestotalsbyamount System.Data.Objects.ObjectSet
_shipper System.Data.Objects.ObjectSet
_summaryofsalesbyquarter System.Data.Objects.ObjectSet
_summaryofsalesbyyear System.Data.Objects.ObjectSet
_supplier System.Data.Objects.ObjectSet
_territory System.Data.Objects.ObjectSet

Private Properties

Свойство Тип Описание
AddObject void
DeleteObject void
GetConnString string
GetConnectionString string
GetDatabaseExtendedProperty string
OnContextCreated void
SelectExtendedProperty string
nHydrate System.Enum
nHydrate System.Type
nHydrate object

Открытые методы

Метод Описание
AddItem ( Acme entity ) : void

Adds an entity of type 'Category' to the object context

CategorizedSales ( string categoryname, string ordyear ) : IEnumerable

CustOrderHist ( string customerid ) : IEnumerable

CustOrdersDetail ( int orderid ) : IEnumerable

CustOrdersOrders ( string customerid ) : IEnumerable

DeleteItem ( Acme entity ) : void

Deletes an entity of type 'Category'

EmployeeSalesbyCountry ( System.DateTime beginningDate, System.DateTime endingDate ) : IEnumerable

GetEntityFromField ( Enum field ) : EntityMappingConstants

Determines the entity from one of its fields

GetMetaData ( Acme table ) : Acme.Northwind.EFDAL.Interfaces.IMetadata

Gets the meta data object for an entity

GetNextSequntialGuid ( EntityMappingConstants entity, string key ) : System.Guid

IsValidConnection ( ) : bool

Determines if the API matches the database connection

IsValidConnection ( bool checkVersion ) : bool

Determines if the API matches the database connection

NorthwindEntities ( ) : System

Initializes a new NorthwindEntities object using the connection string found in the 'NorthwindEntities' section of the application configuration file.

NorthwindEntities ( ContextStartup contextStartup ) : System

Initialize a new NorthwindEntities object with an audit modifier.

NorthwindEntities ( ContextStartup contextStartup, string connectionString ) : System

Initialize a new NorthwindEntities object with an audit modifier.

NorthwindEntities ( System connection ) : System

Initialize a new NorthwindEntities object.

NorthwindEntities ( string connectionString ) : System

Initialize a new NorthwindEntities object.

ResetSequentialGuid ( EntityMappingConstants entity, string key, System.Guid seed ) : void

SalesbyYear ( System.DateTime beginningDate, System.DateTime endingDate ) : IEnumerable

SaveChanges ( SaveOptions options ) : int

Persists all updates to the data source and resets change tracking in the object context.

TenMostExpensiveProducts ( ) : IEnumerable

Защищенные методы

Метод Описание
Acme ( Acme entity ) : void

Deletes an entity of type 'Category'

Приватные методы

Метод Описание
AddObject ( string entitySetName, object entity ) : void
DeleteObject ( object entity ) : void
GetConnString ( ) : string
GetConnectionString ( ) : string
GetDatabaseExtendedProperty ( string connectionString, string propertyName ) : string
OnContextCreated ( ) : void
SelectExtendedProperty ( string connectionString, string property, string user, string table, string parameter ) : string
nHydrate ( Enum field ) : Enum
nHydrate ( Enum field ) : Type
nHydrate ( Enum entity ) : object

Описание методов

Acme() защищенный Метод

Deletes an entity of type 'Category'
protected Acme ( Acme entity ) : void
entity Acme The entity to delete
Результат void

AddItem() публичный Метод

Adds an entity of type 'Category' to the object context
public AddItem ( Acme entity ) : void
entity Acme The entity to add
Результат void

CategorizedSales() публичный Метод

public CategorizedSales ( string categoryname, string ordyear ) : IEnumerable
categoryname string
ordyear string
Результат IEnumerable

CustOrderHist() публичный Метод

public CustOrderHist ( string customerid ) : IEnumerable
customerid string
Результат IEnumerable

CustOrdersDetail() публичный Метод

public CustOrdersDetail ( int orderid ) : IEnumerable
orderid int
Результат IEnumerable

CustOrdersOrders() публичный Метод

public CustOrdersOrders ( string customerid ) : IEnumerable
customerid string
Результат IEnumerable

DeleteItem() публичный Метод

Deletes an entity of type 'Category'
public DeleteItem ( Acme entity ) : void
entity Acme The entity to delete
Результат void

EmployeeSalesbyCountry() публичный Метод

public EmployeeSalesbyCountry ( System.DateTime beginningDate, System.DateTime endingDate ) : IEnumerable
beginningDate System.DateTime
endingDate System.DateTime
Результат IEnumerable

GetEntityFromField() публичный статический Метод

Determines the entity from one of its fields
public static GetEntityFromField ( Enum field ) : EntityMappingConstants
field System.Enum
Результат EntityMappingConstants

GetMetaData() публичный статический Метод

Gets the meta data object for an entity
public static GetMetaData ( Acme table ) : Acme.Northwind.EFDAL.Interfaces.IMetadata
table Acme
Результат Acme.Northwind.EFDAL.Interfaces.IMetadata

GetNextSequntialGuid() публичный статический Метод

public static GetNextSequntialGuid ( EntityMappingConstants entity, string key ) : System.Guid
entity EntityMappingConstants
key string
Результат System.Guid

IsValidConnection() публичный Метод

Determines if the API matches the database connection
public IsValidConnection ( ) : bool
Результат bool

IsValidConnection() публичный Метод

Determines if the API matches the database connection
public IsValidConnection ( bool checkVersion ) : bool
checkVersion bool Determines if the check also includes the exact version of the model
Результат bool

NorthwindEntities() публичный Метод

Initializes a new NorthwindEntities object using the connection string found in the 'NorthwindEntities' section of the application configuration file.
public NorthwindEntities ( ) : System
Результат System

NorthwindEntities() публичный Метод

Initialize a new NorthwindEntities object with an audit modifier.
public NorthwindEntities ( ContextStartup contextStartup ) : System
contextStartup ContextStartup
Результат System

NorthwindEntities() публичный Метод

Initialize a new NorthwindEntities object with an audit modifier.
public NorthwindEntities ( ContextStartup contextStartup, string connectionString ) : System
contextStartup ContextStartup
connectionString string
Результат System

NorthwindEntities() публичный Метод

Initialize a new NorthwindEntities object.
public NorthwindEntities ( System connection ) : System
connection System
Результат System

NorthwindEntities() публичный Метод

Initialize a new NorthwindEntities object.
public NorthwindEntities ( string connectionString ) : System
connectionString string
Результат System

ResetSequentialGuid() публичный статический Метод

public static ResetSequentialGuid ( EntityMappingConstants entity, string key, System.Guid seed ) : void
entity EntityMappingConstants
key string
seed System.Guid
Результат void

SalesbyYear() публичный Метод

public SalesbyYear ( System.DateTime beginningDate, System.DateTime endingDate ) : IEnumerable
beginningDate System.DateTime
endingDate System.DateTime
Результат IEnumerable

SaveChanges() публичный Метод

Persists all updates to the data source and resets change tracking in the object context.
public SaveChanges ( SaveOptions options ) : int
options SaveOptions
Результат int

TenMostExpensiveProducts() публичный Метод

public TenMostExpensiveProducts ( ) : IEnumerable
Результат IEnumerable

Описание свойств

_alphabeticallistofproducts защищенное свойство

The internal reference variable for the 'Alphabeticallistofproducts' object set
protected System.Data.Objects.ObjectSet _alphabeticallistofproducts
Результат System.Data.Objects.ObjectSet

_category защищенное свойство

The internal reference variable for the 'Category' object set
protected System.Data.Objects.ObjectSet _category
Результат System.Data.Objects.ObjectSet

_categorysalesfor1997 защищенное свойство

The internal reference variable for the 'CategorySalesfor1997' object set
protected System.Data.Objects.ObjectSet _categorysalesfor1997
Результат System.Data.Objects.ObjectSet

_contextStartup защищенное свойство

The audit modifier used to mark database edits
protected ContextStartup,Acme.Northwind.EFDAL _contextStartup
Результат ContextStartup

_currentproductlist защищенное свойство

The internal reference variable for the 'CurrentProductList' object set
protected System.Data.Objects.ObjectSet _currentproductlist
Результат System.Data.Objects.ObjectSet

_customer защищенное свойство

The internal reference variable for the 'Customer' object set
protected System.Data.Objects.ObjectSet _customer
Результат System.Data.Objects.ObjectSet

_customerandsuppliersbycity защищенное свойство

The internal reference variable for the 'CustomerandSuppliersbyCity' object set
protected System.Data.Objects.ObjectSet _customerandsuppliersbycity
Результат System.Data.Objects.ObjectSet

_customercustomerdemo защищенное свойство

The internal reference variable for the 'CustomerCustomerDemo' object set
protected System.Data.Objects.ObjectSet _customercustomerdemo
Результат System.Data.Objects.ObjectSet

_customerdemographic защищенное свойство

The internal reference variable for the 'CustomerDemographic' object set
protected System.Data.Objects.ObjectSet _customerdemographic
Результат System.Data.Objects.ObjectSet

_employee защищенное свойство

The internal reference variable for the 'Employee' object set
protected System.Data.Objects.ObjectSet _employee
Результат System.Data.Objects.ObjectSet

_employeeterritorie защищенное свойство

The internal reference variable for the 'EmployeeTerritorie' object set
protected System.Data.Objects.ObjectSet _employeeterritorie
Результат System.Data.Objects.ObjectSet

_invoices защищенное свойство

The internal reference variable for the 'Invoices' object set
protected System.Data.Objects.ObjectSet _invoices
Результат System.Data.Objects.ObjectSet

_order защищенное свойство

The internal reference variable for the 'Order' object set
protected System.Data.Objects.ObjectSet _order
Результат System.Data.Objects.ObjectSet

_orderdetail защищенное свойство

The internal reference variable for the 'OrderDetail' object set
protected System.Data.Objects.ObjectSet _orderdetail
Результат System.Data.Objects.ObjectSet

_orderdetailsextended защищенное свойство

The internal reference variable for the 'OrderDetailsExtended' object set
protected System.Data.Objects.ObjectSet _orderdetailsextended
Результат System.Data.Objects.ObjectSet

_ordersqry защищенное свойство

The internal reference variable for the 'OrdersQry' object set
protected System.Data.Objects.ObjectSet _ordersqry
Результат System.Data.Objects.ObjectSet

_ordersubtotals защищенное свойство

The internal reference variable for the 'OrderSubtotals' object set
protected System.Data.Objects.ObjectSet _ordersubtotals
Результат System.Data.Objects.ObjectSet

_product защищенное свойство

The internal reference variable for the 'Product' object set
protected System.Data.Objects.ObjectSet _product
Результат System.Data.Objects.ObjectSet

_productsaboveaverageprice защищенное свойство

The internal reference variable for the 'ProductsAboveAveragePrice' object set
protected System.Data.Objects.ObjectSet _productsaboveaverageprice
Результат System.Data.Objects.ObjectSet

_productsalesfor1997 защищенное свойство

The internal reference variable for the 'ProductSalesfor1997' object set
protected System.Data.Objects.ObjectSet _productsalesfor1997
Результат System.Data.Objects.ObjectSet

_productsbycategory защищенное свойство

The internal reference variable for the 'ProductsbyCategory' object set
protected System.Data.Objects.ObjectSet _productsbycategory
Результат System.Data.Objects.ObjectSet

_quarterlyorders защищенное свойство

The internal reference variable for the 'QuarterlyOrders' object set
protected System.Data.Objects.ObjectSet _quarterlyorders
Результат System.Data.Objects.ObjectSet

_region защищенное свойство

The internal reference variable for the 'Region' object set
protected System.Data.Objects.ObjectSet _region
Результат System.Data.Objects.ObjectSet

_salesbycategory защищенное свойство

The internal reference variable for the 'SalesbyCategory' object set
protected System.Data.Objects.ObjectSet _salesbycategory
Результат System.Data.Objects.ObjectSet

_salestotalsbyamount защищенное свойство

The internal reference variable for the 'SalesTotalsbyAmount' object set
protected System.Data.Objects.ObjectSet _salestotalsbyamount
Результат System.Data.Objects.ObjectSet

_shipper защищенное свойство

The internal reference variable for the 'Shipper' object set
protected System.Data.Objects.ObjectSet _shipper
Результат System.Data.Objects.ObjectSet

_summaryofsalesbyquarter защищенное свойство

The internal reference variable for the 'SummaryofSalesbyQuarter' object set
protected System.Data.Objects.ObjectSet _summaryofsalesbyquarter
Результат System.Data.Objects.ObjectSet

_summaryofsalesbyyear защищенное свойство

The internal reference variable for the 'SummaryofSalesbyYear' object set
protected System.Data.Objects.ObjectSet _summaryofsalesbyyear
Результат System.Data.Objects.ObjectSet

_supplier защищенное свойство

The internal reference variable for the 'Supplier' object set
protected System.Data.Objects.ObjectSet _supplier
Результат System.Data.Objects.ObjectSet

_territory защищенное свойство

The internal reference variable for the 'Territory' object set
protected System.Data.Objects.ObjectSet _territory
Результат System.Data.Objects.ObjectSet