コード例 #1
0
        internal static TEntityInterface Create <TEntityInterface>(IEntityProxyContext context, EntityId entityId)
        {
            var type = TypeMappings.GetOrAdd(typeof(TEntityInterface), CreateProxyType);

            return((TEntityInterface)Activator.CreateInstance(type, context, entityId));
        }
コード例 #2
0
 protected EntityProxy(IEntityProxyContext context, EntityId entityId)
 {
     _context  = context;
     _entityId = entityId;
 }
コード例 #3
0
 /// <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;
 }