Beispiel #1
0
 internal RootObject WithState(RootObjectState newState)
 {
     if (object.ReferenceEquals(newState, objectState))
     {
         return(this);
     }
     return(new RootObject(newState, children));
 }
Beispiel #2
0
 public DatabaseState Without(RootObjectState removeObject)
 {
     return(Without(Helpers.EnumerableFrom(removeObject), null));
 }
Beispiel #3
0
 public DatabaseState With(RootObjectState newObject)
 {
     return(With(Helpers.EnumerableFrom(newObject), null));
 }
Beispiel #4
0
 public RootObjectState <TType, TState> Get <TType, TState>(RootObjectState <TType, TState> root)
     where TType : RootObjectType <TType, TState>, new()
 {
     return((RootObjectState <TType, TState>)GetRoot(root.Identifier));
 }
Beispiel #5
0
 public bool Contains(RootObjectState state)
 {
     return(ContainsRoot(state.Identifier));
 }
Beispiel #6
0
 internal RootObject(RootObjectState objectState, ObjectSet <SubObjectState> children)
 {
     this.objectState = objectState;
     this.children    = children;
 }