Type of the enum; set in prototype of each enum
The name of this symbol
The 'Added' state.
The 'Deleted' state.
The 'Detached' state.
The 'Modified' state.
The 'Unchanged' state.
Return whether an entityState instance is EntityState.Added.
var es = anEntity.entityAspect.entityState;
return es.isAdded();
is the same as
return es === EntityState.Added;
Returns whether an entityState instance is EntityState.Added or EntityState.Modified or EntityState.Deleted.
var es = anEntity.entityAspect.entityState;
return es.isAddedModifiedOrDeleted();
is the same as
return es === EntityState.Added || es === EntityState.Modified || es === EntityState.Deleted
Returns whether an entityState instance is EntityState.Deleted.
var es = anEntity.entityAspect.entityState;
return es.isDeleted();
is the same as
return es === EntityState.Deleted;
Returns whether an entityState instance is EntityState.Detached.
var es = anEntity.entityAspect.entityState;
return es.isDetached();
is the same as
return es === EntityState.Detached;
Returns whether an entityState instance is EntityState.Modified.
var es = anEntity.entityAspect.entityState;
return es.isModified();
is the same as
return es === EntityState.Modified;
Returns whether an entityState instance is EntityState.Unchanged.
var es = anEntity.entityAspect.entityState;
return es.isUnchanged();
is the same as
return es === EntityState.Unchanged;
Returns whether an entityState instance is EntityState.Unchanged or EntityState.Modified.
var es = anEntity.entityAspect.entityState;
return es.isUnchangedOrModified();
is the same as
return es === EntityState.Unchanged || es === EntityState.Modified
Return enum name and symbol name
Returns the string name of this Enum
Returns whether an Enum contains a specified symbol.
let symbol = DayOfWeek.Friday;
if (DayOfWeek.contains(symbol)) {
// do something
}
Object or symbol to test.
Whether this Enum contains the specified symbol.
Returns an Enum symbol given its name.
let dayOfWeek = DayOfWeek.from("Thursday");
// nowdayOfWeek === DayOfWeek.Thursday
Name for which an enum symbol should be returned.
The symbol that matches the name or 'undefined' if not found.
Returns the names of all of the symbols contained within this Enum.
let symbols = DayOfWeek.getNames();
All of the names of the symbols contained within this Enum.
Returns all of the symbols contained within this Enum.
let symbols = DayOfWeek.getSymbols();
All of the symbols contained within this Enum.
Seals this enum so that no more symbols may be added to it. This should only be called after all symbols have already been added to the Enum. This method also sets the 'name' property on each of the symbols.
DayOfWeek.resolveSymbols();
Generated using TypeDoc
EntityState is an 'Enum' containing all of the valid states for an 'Entity'.