private bool CalcIsPersistent(CRefMetaInfo aProperty, CTyp aObjectTyp) { var aIsPersistent = this.GetDeclaringTyp(aProperty) == aObjectTyp || this.CalcSpreadAcrossTables(aProperty) ; return(aIsPersistent); }
private CTyp GetDeclaringTyp(CRefMetaInfo aProperty) => this.Typs.GetBySystemType(aProperty.PropertyInfo.DeclaringType);
private bool CalcSpreadAcrossTables(CRefMetaInfo aProperty) => aProperty.IsDefined <CSpreadAcrossTablesAttribute>() ? aProperty.GetAttribute <CSpreadAcrossTablesAttribute>().Value : false ;
public CRx1PRef(CEntityObject aParentEntityObject, CRefMetaInfo aRefMetaInfo) : base(aParentEntityObject, aRefMetaInfo, new CAccessKey()) { }
public CR11Ref(CEntityObject aParentEntityObject, CRefMetaInfo aRefMetaInfo, CAccessKey aWriteKeyNullable = null) : base(aParentEntityObject, aRefMetaInfo, aWriteKeyNullable) { }
public CRx1Ref(CEntityObject aParentEntityObject, CRefMetaInfo aRefMetaInfo, CAccessKey aWriteKeyNullable = null) : base(aParentEntityObject, aRefMetaInfo, aWriteKeyNullable) { this.ObjectProxy = new CObjectProxy <TTarget>(aParentEntityObject.Storage, default(Guid)); }
protected CNRef(CEntityObject aParentEntityObject, CRefMetaInfo aRefMetaInfo) : base(aParentEntityObject, aRefMetaInfo, new CAccessKey()) { this.Collection = aRefMetaInfo.NewCollection <TRef>(aParentEntityObject.Storage); this.ChangeValue(this.Collection, this.WriteKeyNullable, false); }
protected CRef(CEntityObject aParentEntityObject, CRefMetaInfo aRefMetaInfo, CAccessKey aWriteKeyNullable) { this.ParentEntityObject = aParentEntityObject; this.RefMetaInfo = aRefMetaInfo; this.WriteKeyNullable = aWriteKeyNullable; }