ExampleMoviesEntities Class
From Template MVC
Template Documentation
ExampleMoviesEntities Class |
The DbContext class of Entity Framework
Namespace: Template.Repository.Context
Assembly: Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public class ExampleMoviesEntities : DbContext
The ExampleMoviesEntities type exposes the following members.
| Name | Description | |
|---|---|---|
| ExampleMoviesEntities |
The default constructor for the Entity class
|
| 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
|
| 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).) |