C# Class Lex.Db.Server.SampleDbContext

No Metadata Documentation available.
Inheritance: ObjectContext
Mostra file Open project: demigor/lex.db.sync Class Usage Examples

Public Methods

Method Description
AddToCompanies ( Company company ) : void

Deprecated Method for adding a new object to the Companies EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.

AddToDeletedItems ( DeletedItem deletedItem ) : void

Deprecated Method for adding a new object to the DeletedItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.

AddToPeople ( Person person ) : void

Deprecated Method for adding a new object to the People EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.

SampleDbContext ( ) : System

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

SampleDbContext ( System.Data.EntityClient.EntityConnection connection ) : System

Initialize a new SampleDbContext object.

SampleDbContext ( string connectionString ) : System

Initialize a new SampleDbContext object.

Private Methods

Method Description
OnContextCreated ( ) : void

Method Details

AddToCompanies() public method

Deprecated Method for adding a new object to the Companies EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToCompanies ( Company company ) : void
company Company
return void

AddToDeletedItems() public method

Deprecated Method for adding a new object to the DeletedItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToDeletedItems ( DeletedItem deletedItem ) : void
deletedItem DeletedItem
return void

AddToPeople() public method

Deprecated Method for adding a new object to the People EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToPeople ( Person person ) : void
person Person
return void

SampleDbContext() public method

Initializes a new SampleDbContext object using the connection string found in the 'SampleDbContext' section of the application configuration file.
public SampleDbContext ( ) : System
return System

SampleDbContext() public method

Initialize a new SampleDbContext object.
public SampleDbContext ( System.Data.EntityClient.EntityConnection connection ) : System
connection System.Data.EntityClient.EntityConnection
return System

SampleDbContext() public method

Initialize a new SampleDbContext object.
public SampleDbContext ( string connectionString ) : System
connectionString string
return System