C# 클래스 DataLayer.DataClasses.SampleWebAppDb

상속: DbContext, IGenericServicesDbContext
파일 보기 프로젝트 열기: JonPSmith/SampleMvcWebApp 1 사용 예제들

공개 메소드들

메소드 설명
SampleWebAppDb ( ) : System.Collections.Generic
SaveChanges ( ) : int

This has been overridden to handle: a) Updating of modified items (see p194 in DbContext book)

SaveChangesAsync ( ) : Task

Same for async

보호된 메소드들

메소드 설명
ValidateEntity ( DbEntityEntry entityEntry, object>.IDictionary items ) : System.Data.Entity.Validation.DbEntityValidationResult

This does validations that can only be done at the database level

비공개 메소드들

메소드 설명
HandleChangeTracking ( ) : void

This handles going through all the entities that have changed and seeing if they need any special handling.

SampleWebAppDb ( string connectionString ) : System.Collections.Generic

메소드 상세

SampleWebAppDb() 공개 메소드

public SampleWebAppDb ( ) : System.Collections.Generic
리턴 System.Collections.Generic

SaveChanges() 공개 메소드

This has been overridden to handle: a) Updating of modified items (see p194 in DbContext book)
public SaveChanges ( ) : int
리턴 int

SaveChangesAsync() 공개 메소드

Same for async
public SaveChangesAsync ( ) : Task
리턴 Task

ValidateEntity() 보호된 메소드

This does validations that can only be done at the database level
protected ValidateEntity ( DbEntityEntry entityEntry, object>.IDictionary items ) : System.Data.Entity.Validation.DbEntityValidationResult
entityEntry DbEntityEntry
items object>.IDictionary
리턴 System.Data.Entity.Validation.DbEntityValidationResult