Method | Description | |
---|---|---|
BaseballCardService ( ) : System | ||
Create ( |
Adds a new BaseballCard to DBSet
|
|
Delete ( int id ) : void |
This method is not implemented yet
|
|
GetAllCards ( ) : List |
Calls the DBSet
|
|
GetBaseballCard ( int id ) : |
Finds a single BaseballCard by the Id passed into the method. calls DBSet
|
|
SaveChanges ( ) : void |
Calls DBContext.SaveChanges to save anything that may have changed in the DBContext
|
|
Update ( |
Updates BaseballCard in DBSet with information
|
Method | Description | |
---|---|---|
OnModelCreating ( DbModelBuilder modelBuilder ) : void |
Override to the DBContext Method to map entity to right table.
|
public Create ( |
||
baseballCard | BaseballCard to be added to the DBSet | |
return | void |
public Delete ( int id ) : void | ||
id | int | Id of the card to be deleted from the DBSet |
return | void |
public GetBaseballCard ( int id ) : |
||
id | int | Id of the baseballCard to be found in DBSet |
return |
protected OnModelCreating ( DbModelBuilder modelBuilder ) : void | ||
modelBuilder | DbModelBuilder | |
return | void |
public Update ( |
||
baseballCard | BaseballCard to update | |
return | void |