C# Class MySql.Data.Entity.Tests.Model1Container

No Metadata Documentation available.
Inheritance: ObjectContext
Exibir arquivo Open project: elevate/mysqlconnector-.net Class Usage Examples

Public Methods

Method Description
AddToAnimals ( Animal animal ) : void

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

AddToShelters ( Shelter shelter ) : void

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

Model1Container ( ) : System

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

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

Initialize a new Model1Container object.

Model1Container ( string connectionString ) : System

Initialize a new Model1Container object.

Private Methods

Method Description
OnContextCreated ( ) : void

Method Details

AddToAnimals() public method

Deprecated Method for adding a new object to the Animals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToAnimals ( Animal animal ) : void
animal Animal
return void

AddToShelters() public method

Deprecated Method for adding a new object to the Shelters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToShelters ( Shelter shelter ) : void
shelter Shelter
return void

Model1Container() public method

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

Model1Container() public method

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

Model1Container() public method

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