예제 #1
0
 public EntityIdProvider(IKeyGenerator <TEntity, TKey> keyGenerator, IEntityKeyBinder <TEntity, TKey> keyBinder)
 {
     _getKey    = keyGenerator;
     _keyBinder = keyBinder;
 }
        public NoOpEntityIdProvider(IEntityKeyBinder <TEntity, TKey> binder)
        {
            Guard.ArgumentNotNull(binder, nameof(binder));

            _binder = binder;
        }