forked from kenjiuno/Npgsql
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathNpgsqlOptionsExtension.cs
More file actions
30 lines (25 loc) · 886 Bytes
/
NpgsqlOptionsExtension.cs
File metadata and controls
30 lines (25 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using JetBrains.Annotations;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Relational;
using Microsoft.Data.Entity.Utilities;
using Microsoft.Framework.DependencyInjection;
namespace Npgsql.EntityFramework7
{
public class NpgsqlOptionsExtension : RelationalOptionsExtension
{
public NpgsqlOptionsExtension()
{
}
public NpgsqlOptionsExtension([NotNull] NpgsqlOptionsExtension copyFrom)
: base(copyFrom)
{
}
public override void ApplyServices(EntityFrameworkServicesBuilder builder)
{
Check.NotNull(builder, nameof(builder));
builder.AddNpgsql();
}
}
}