Template Documentation
ExampleMoviesEntities Class |
The DbContext class of Entity Framework
Inheritance Hierarchy
Namespace: Template.Repository.Context
Assembly: Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ExampleMoviesEntities : DbContext
The ExampleMoviesEntities type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ExampleMoviesEntities |
The default constructor for the Entity class
|
Properties
Name | Description | |
---|---|---|
MOVIE_CATEGORY |
Represents the table MOVIE_CATEGORY of the database with the base CRUD functions
| |
MOVIES |
Represents the table MOVIES of the database with the base CRUD functions
|
Methods
Name | Description | |
---|---|---|
OnModelCreating |
Overrides the base function to only throw an exception when is called, because this function is only called on a CodeFirst solution
(Overrides DbContext.OnModelCreating(DbModelBuilder).) |
See Also