Пример #1
0
        public DataProviderDescriptor(
            Type modelType,
            Type dataProviderType,
            DataProviderLifetime lifetime)
            : this(modelType, dataProviderType)
        {
            if (modelType == null)
            {
                throw new ArgumentNullException(nameof(modelType));
            }

            if (dataProviderType == null)
            {
                throw new ArgumentNullException(nameof(dataProviderType));
            }

            Lifetime = lifetime;
        }
Пример #2
0
 public static DataProviderDescriptor Describe(Type modelType, Type dataProviderType, DataProviderLifetime lifetime)
 {
     return(new DataProviderDescriptor(modelType, dataProviderType, lifetime));
 }