Skip to content

ExpectedRows enumeration

namespace: Serenity.Data   assemblySerenity.Net.Services

Expected number of rows enumeration for SQL Update / Delete operations. This enumeration is used to avoid updating/deleting multiple records by mistake when one forgets to add a WHERE statement.

public enum ExpectedRows

Values

name value description
One 0 Query should only affect one row, not zero or more.
ZeroOrOne 1 Query may affect zero or one row, not more.
Ignore 2 Ignore the number of affected rows.

See Also