C# Class Rossbot.Data.DataContext

No Metadata Documentation available.
Inheritance: ObjectContext
Mostrar archivo Open project: fekberg/Roslyn-IRC-Bot Class Usage Examples

Public Methods

Method 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

Method Description
OnContextCreated ( ) : void

Method Details

AddToCommands() public method

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
return void

AddToNamespaces() public method

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
return void

AddToUsers() public method

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
return void

DataContext() public method

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

DataContext() public method

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

DataContext() public method

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