DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
ProviderSettings.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 
4 using Deveel.Data.Mapping;
5 
6 namespace Deveel.Data.Linq {
7  public sealed class ProviderSettings {
8  public ProviderSettings(string userName, string password, MappingModel model) {
9  if (String.IsNullOrEmpty(userName))
10  throw new ArgumentNullException("userName");
11  if (String.IsNullOrEmpty(password))
12  throw new ArgumentNullException("password");
13  if (model == null)
14  throw new ArgumentNullException("model");
15 
16  UserName = userName;
17  Password = password;
18  MappingModel = model;
19 
20  Metadata = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
21  }
22 
23  public string UserName { get; private set; }
24 
25  public string Password { get; private set; }
26 
27  public IDictionary<string, object> Metadata { get; private set; }
28 
29  public MappingModel MappingModel { get; private set; }
30  }
31 }
ProviderSettings(string userName, string password, MappingModel model)