예제 #1
0
        public void RegisterTypeResolver(ISterlingTypeResolver interceptor)
        {
            if (interceptor == null)
            {
                throw new ArgumentNullException("interceptor");
            }

            if (!_typeResolvers.Contains(interceptor))
            {
                _typeResolvers.Add(interceptor);
            }
        }
예제 #2
0
        public void RegisterTypeResolver(ISterlingTypeResolver interceptor)
        {
            if (interceptor == null)
            {
                throw new ArgumentNullException("interceptor");
            }

            if (!_typeResolvers.Contains(interceptor))
            {
                _typeResolvers.Add(interceptor);
            }
        }
예제 #3
0
 /// <summary>
 /// Register a class responsible for type resolution.
 /// </summary>
 /// <param name="typeResolver">The typeResolver</param>
 public void RegisterTypeResolver(ISterlingTypeResolver typeResolver)
 {
     TableTypeResolver.RegisterTypeResolver(typeResolver);
 }
예제 #4
0
 /// <summary>
 /// Register a class responsible for type resolution.
 /// </summary>
 /// <param name="typeInterceptor"></param>
 protected void RegisterTypeResolver(ISterlingTypeResolver typeInterceptor)
 {
     this.Database.RegisterTypeResolver(typeInterceptor);
 }
예제 #5
0
 /// <summary>
 /// Register a class responsible for type resolution.
 /// </summary>
 /// <param name="typeInterceptor"></param>
 protected void RegisterTypeResolver(ISterlingTypeResolver typeInterceptor)
 {
     TableTypeResolver.RegisterTypeResolver(typeInterceptor);
 }