Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Robin Thoni cf004cd9d8 log exceptions vor 7 Jahren
..
Business removed unused imports; added someText check; fixed crud business null check vor 7 Jahren
Controllers added pagination request dbo vor 7 Jahren
DataAccess removed unused imports; added someText check; fixed crud business null check vor 7 Jahren
Dbo fixed project.json; fixed lufilter dbo annotation vor 7 Jahren
Hubs added dbo in notifications filters; made hub connection tracker thread safe vor 7 Jahren
Interfaces removed unused imports; added someText check; fixed crud business null check vor 7 Jahren
Middlewares log exceptions vor 7 Jahren
Properties init vor 7 Jahren
Utils refactor; handle(single) methods; exception handler; lu result handling vor 7 Jahren
Luticate2.Utils.xproj init vor 7 Jahren
README.md README; gitignore; removed lock files vor 7 Jahren
project.json README; gitignore; removed lock files vor 7 Jahren

README.md

Luticate2 API Utils

Install

NuGet.Config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="rthoni" value="http://nuget.rthoni.com" protocolVersion="2" />
  </packageSources>
</configuration>

project.json

{
    ...
    dependencies": {
        "Luticate2.Utils": "0.1.*",
        ...
    }
    ...
}

appsettings.json

{
    ...
    "ConnectionStrings": {
        "default":  "User ID=POSTGRES_USER;Password=POSTGRES_PASSWORD;Host=POSTGRES_HOST;Port=5432;Database=POSTGRES_DB;Pooling=true;",
        ...
    }
    ...
}

Startup.cs

public void ConfigureServices(IServiceCollection services)
{
    // ...

    // MUST be before addMvc()
    services.AddLuticateUtils(options => options.Version = "dev");

    // ...

    services.AddDbContext<YourDbContext>(options => // Replace YourDbContext with your own database context
    {
        options.UseNpgsql(Configuration.GetConnectionString("default"));
        options.UseInternalServiceProvider(new ServiceCollection()
            .AddEntityFrameworkNpgsqlLuticate() // MUST be before AddEntityFrameworkNpgsql()
            .AddEntityFrameworkNpgsql()
            .BuildServiceProvider());
    });

    services.AddMvc()
        .AddLuticateUtils();
        
    // ...
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
    // ...

    // MUST be before useMvc()
    app.UseLuticateUtils();

    // ...
}

Usage

See WebApiUtils for an example