Class CloudStorageOrmServiceCollectionExtensions
- Namespace
- CloudStorageORM.Extensions
- Assembly
- CloudStorageORM.dll
Service collection extensions for registering CloudStorageORM services.
public static class CloudStorageOrmServiceCollectionExtensions
- Inheritance
-
CloudStorageOrmServiceCollectionExtensions
- Inherited Members
Methods
AddEntityFrameworkCloudStorageOrm(IServiceCollection, CloudStorageOptions)
Registers CloudStorageORM services and the configured storage provider in dependency injection.
public static IServiceCollection AddEntityFrameworkCloudStorageOrm(this IServiceCollection services, CloudStorageOptions storageOptions)
Parameters
servicesIServiceCollectionService collection receiving CloudStorageORM registrations.
storageOptionsCloudStorageOptionsConfigured CloudStorageORM options to validate and register.
Returns
- IServiceCollection
The same IServiceCollection instance for chaining.
Examples
services.AddEntityFrameworkCloudStorageOrm(new CloudStorageOptions
{
Provider = CloudStorageORM.Enums.CloudProvider.Azure,
ContainerName = "app-data",
Azure = { ConnectionString = "UseDevelopmentStorage=true" }
});