MssqlScope class
A predicate applied to every read of a table, unless it is switched off.
Eloquent calls this a global scope. Soft deletes are the case that makes it worth having: hiding deleted rows must happen on every query, and leaving it to each call site means one query will forget it.
- Annotations
-
- @immutable
Constructors
- MssqlScope(String name, MssqlCondition? build())
-
const
Properties
- build → MssqlCondition? Function()
-
The predicate. Null means "add nothing" — useful for a scope whose
condition depends on state that may be absent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
How the scope is switched off:
without(name).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited