IRowOperationInterceptor interface
namespace: Serenity.Data assembly: Serenity.Net.Services
An interface that allows you to intercept SQL operations on entities. Note that this does not intercept all SQL operations, only the ones that are done through EntityConnectionExtensions. This interface should be implemented by the mock connection class used in tests.
public interface IRowOperationInterceptor
Members
| name | description |
|---|---|
| FindRow(…) | Intercepts EntityConnectionExtensions's ById/TryById/First/TryFirst/Single/TrySingle methods. |
| FindRowAsync(…) | Intercepts the async EntityConnectionExtensions ById/TryById/First/TryFirst/Single/TrySingle methods. The default implementation forwards to FindRow. |
| ListRows(…) | Intercepts EntityConnectionExtensions.List and Count methods. |
| ListRowsAsync(…) | Intercepts the async EntityConnectionExtensions List and Count methods. The default implementation forwards to ListRows. |
| ManipulateRow(…) | Intercepts EntityConnectionExtensions.DeleteById method. |
| ManipulateRowAsync(…) | Intercepts the async EntityConnectionExtensions DeleteById/Insert/Update methods. The default implementation forwards to ManipulateRow. |
See Also
- Source: IRowOperationInterceptor.cs