The DataConnection type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | Add<(Of <<'(TData>)>>)(IEnumerable<(Of <<'(TData>)>>)) |
Adds the TData instances to the default C1 storage.
If the storage does not exist, then one is created.
This method triggers the events OnBeforeAdd and OnAfterAdd for each item in items |
![]() | Add<(Of <<'(TData>)>>)(TData) |
Adds the TData instance to the default C1 storage.
If the storage does not exist, then one is created.
This method triggers the events OnBeforeAdd and OnAfterAdd for the item item.
|
![]() | AddService |
attach service to data connection
|
![]() | CreateNew<(Of <<'(TData>)>>) |
Create a new TData that can be added using Add<(Of <<'(TData>)>>)(TData).
This method triggers the event OnNew for the return value of the method.
|
![]() | Delete<(Of <<'(TData>)>>)(IEnumerable<(Of <<'(TData>)>>)) |
Deletes the given TData instances permently from the C1 storage.
This method triggers the event OnDeleted for each item in items |
![]() | Delete<(Of <<'(TData>)>>)(TData) |
Deletes the given TData instance permently from the C1 storage.
This method triggers the event OnDeleted for the item item |
![]() | DisableServices |
disable all services in the data connection
|
![]() | Get<(Of <<'(TData>)>>) |
Returns an IQueryable of the given IData interface.
If no storage supports the given IData interface, an exception is thrown.
|
![]() | GetService |
Resolve service of a specific type that is attached to connection's data scope
|
![]() ![]() | New<(Of <<'(TData>)>>) |
Create a new TData that can be added using Add<(Of <<'(TData>)>>)(TData).
This method triggers the event OnNew for the return value of the method.
|
![]() | Update<(Of <<'(TData>)>>)(IEnumerable<(Of <<'(TData>)>>)) |
Updates the geven TData instances in the C1 storage.
If any property values in any of the TData instances, these would be saved into the storage.
This method triggers the events OnBeforeUpdate and OnAfterUpdate for each item in items |
![]() | Update<(Of <<'(TData>)>>)(TData) |
Updates the given TData instance in the C1 storage.
If any property values has been changed, these would be saved into the storage.
This method triggers the events OnBeforeUpdate and OnAfterUpdate for the item item |