The DataConnection type exposes the following members.

Methods

  NameDescription
Public methodAdd<(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
Public methodAdd<(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.
Public methodAddService
attach service to data connection
Public methodCreateNew<(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.
Public methodDelete<(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
Public methodDelete<(Of <<'(TData>)>>)(TData)
Deletes the given TData instance permently from the C1 storage. This method triggers the event OnDeleted for the item item
Public methodDisableServices
disable all services in the data connection
Public methodGet<(Of <<'(TData>)>>)
Returns an IQueryable of the given IData interface. If no storage supports the given IData interface, an exception is thrown.
Public methodGetService
Resolve service of a specific type that is attached to connection's data scope
Public methodStatic memberNew<(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.
Public methodUpdate<(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
Public methodUpdate<(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

See Also