Click or drag to resize

DataSourceExtensionsDelete Method

Deletes the specified row from the data source

Namespace:  Aloe.SystemFrameworks.Domain.DataAccess
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static void Delete(
	this IDataSource dataSource,
	string tableName,
	Guid id,
	string transactionName = null
)

Parameters

dataSource
Type: Aloe.SystemFrameworks.Domain.DataAccessIDataSource
The data source on which to effect the command
tableName
Type: SystemString
The table containing the row
id
Type: SystemGuid
The id of the row
transactionName (Optional)
Type: SystemString
The name of the transaction, for logging purposes.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This is a data access method and works for DataAccess (and above) connection levels.
See Also