C# Class MyDataContext, code

显示文件 Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
AddNotification ( Notification, notificationToAdd ) : void
AddResource ( ResourceType, resourceType, object resource ) : void
CreateResource ( ResourceType, resourceType ) : object
DeleteResource ( object resource ) : void
GetQueryable ( ResourceSet, set ) : IQueryable,
MyDataContext ( DbContextOptions options )
SaveChanges ( ) : void

Protected Methods

Method Description
NotifyPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
AddNotificationCommand ( object item ) : void
FunctionName ( ) : ReturnType,

Method Details

AddNotification() public method

public AddNotification ( Notification, notificationToAdd ) : void
notificationToAdd Notification,
return void

AddResource() public method

public AddResource ( ResourceType, resourceType, object resource ) : void
resourceType ResourceType,
resource object
return void

CreateResource() public method

public CreateResource ( ResourceType, resourceType ) : object
resourceType ResourceType,
return object

DeleteResource() public method

public DeleteResource ( object resource ) : void
resource object
return void

GetQueryable() public method

public GetQueryable ( ResourceSet, set ) : IQueryable,
set ResourceSet,
return IQueryable,

MyDataContext() public method

public MyDataContext ( DbContextOptions options )
options DbContextOptions

NotifyPropertyChanged() protected method

protected NotifyPropertyChanged ( string propertyName ) : void
propertyName string
return void

SaveChanges() public method

public SaveChanges ( ) : void
return void