internal static TEntityInterface Create <TEntityInterface>(IEntityProxyContext context, EntityId entityId) { var type = TypeMappings.GetOrAdd(typeof(TEntityInterface), CreateProxyType); return((TEntityInterface)Activator.CreateInstance(type, context, entityId)); }
protected EntityProxy(IEntityProxyContext context, EntityId entityId) { _context = context; _entityId = entityId; }
/// <summary> /// Create an entity proxy. /// </summary> /// <param name="context">context.</param> /// <param name="entityId">Entity id.</param> protected EntityProxy(IEntityProxyContext context, EntityId entityId) { this.context = context; this.entityId = entityId; }