C# Class Rossbot.Data.DataContext

No Metadata Documentation available.
Inheritance: ObjectContext
Afficher le fichier Open project: fekberg/Roslyn-IRC-Bot Class Usage Examples

Méthodes publiques

Méthode Description
AddToCommands ( Commands commands ) : void

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

AddToNamespaces ( Namespaces namespaces ) : void

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

AddToUsers ( Users users ) : void

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

DataContext ( ) : System

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

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

Initialize a new DataContext object.

DataContext ( string connectionString ) : System

Initialize a new DataContext object.

Private Methods

Méthode Description
OnContextCreated ( ) : void

Method Details

AddToCommands() public méthode

Deprecated Method for adding a new object to the Commands EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToCommands ( Commands commands ) : void
commands Commands
Résultat void

AddToNamespaces() public méthode

Deprecated Method for adding a new object to the Namespaces EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToNamespaces ( Namespaces namespaces ) : void
namespaces Namespaces
Résultat void

AddToUsers() public méthode

Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
public AddToUsers ( Users users ) : void
users Users
Résultat void

DataContext() public méthode

Initializes a new DataContext object using the connection string found in the 'DataContext' section of the application configuration file.
public DataContext ( ) : System
Résultat System

DataContext() public méthode

Initialize a new DataContext object.
public DataContext ( System.Data.EntityClient.EntityConnection connection ) : System
connection System.Data.EntityClient.EntityConnection
Résultat System

DataContext() public méthode

Initialize a new DataContext object.
public DataContext ( string connectionString ) : System
connectionString string
Résultat System