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; }
public static DataProviderDescriptor Describe(Type modelType, Type dataProviderType, DataProviderLifetime lifetime) { return(new DataProviderDescriptor(modelType, dataProviderType, lifetime)); }