public Exceptional<Boolean> StoreUndefinedAttributes(UndefinedAttributesStream UndefAttributes) { if (UndefAttributes != null && UndefAttributes.isDirty) { var storeExcept = _IGraphFSSession.StoreFSObject(UndefAttributes, true); if (storeExcept == null || storeExcept.Failed()) return new Exceptional<Boolean>(storeExcept); } return new Exceptional<bool>(true); }
public Exceptional<UndefinedAttributesStream> LoadUndefinedAttributes(ObjectLocation myAttributeLocation) { #region data UndefinedAttributesStream retAttributes = null; #endregion var existExcept = _IGraphFSSession.ObjectStreamExists(myAttributeLocation, DBConstants.UNDEFATTRIBUTESSTREAM); if (existExcept.Failed()) return new Exceptional<UndefinedAttributesStream>(existExcept); if (existExcept.Value == Trinary.TRUE) { var loadException = _IGraphFSSession.GetFSObject<UndefinedAttributesStream>(myAttributeLocation, DBConstants.UNDEFATTRIBUTESSTREAM, null, null, 0, false); if (loadException.Failed()) return new Exceptional<UndefinedAttributesStream>(loadException); retAttributes = loadException.Value; } else retAttributes = new UndefinedAttributesStream(myAttributeLocation); return new Exceptional<UndefinedAttributesStream>(retAttributes); }