Beispiel #1
0
 internal TypeMapping(MappingModel model, Type type, string tableName)
 {
     Model = model;
     Type = type;
     TableName = tableName;
     memberMappings = new Dictionary<string, MemberMapping>();
 }
        public ProviderSettings(string userName, string password, MappingModel model)
        {
            if (String.IsNullOrEmpty(userName))
                throw new ArgumentNullException("userName");
            if (String.IsNullOrEmpty(password))
                throw new ArgumentNullException("password");
            if (model == null)
                throw new ArgumentNullException("model");

            UserName = userName;
            Password = password;
            MappingModel = model;

            Metadata = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
        }
 public static IQueryProvider GetQueryProvider(this IQuery context, MappingModel model)
 {
     var queryMapping = model.CreateQueryMapping();
     return new DeveelDbProvider(context, queryMapping, new EntityPolicy());
 }
 public DeveelDbMapping(MappingModel model)
 {
     Model = model;
 }