-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMappingProvider.cpp
More file actions
57 lines (45 loc) · 906 Bytes
/
IMappingProvider.cpp
File metadata and controls
57 lines (45 loc) · 906 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "stdafx.h"
#include "IMappingProvider.h"
void swap(IMappingProvider &left, IMappingProvider &right)
{
using std::swap;
swap(left._schema, right._schema);
swap(left._table, right._table);
}
IMappingProvider::IMappingProvider() :
_schema("dbo")
{
}
IMappingProvider::IMappingProvider(const IMappingProvider &other) :
_schema(other._schema)
, _table(other._table)
{
}
IMappingProvider::~IMappingProvider()
{
}
IMappingProvider &IMappingProvider::operator =(const IMappingProvider &other)
{
if (this != &other)
{
_schema = other._schema;
_table = other._table;
}
return *this;
}
std::string IMappingProvider::GetSchema() const
{
return _schema;
}
std::string IMappingProvider::GetTable() const
{
return _table;
}
void IMappingProvider::Schema(const std::string &schema)
{
_schema = schema;
}
void IMappingProvider::Table(const std::string &table)
{
_table = table;
}