Mercurial > pub > bltoolkit
comparison Source/DataAccess/TableNameAttribute.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 using System; | |
2 | |
3 namespace BLToolkit.DataAccess | |
4 { | |
5 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] | |
6 public class TableNameAttribute : Attribute | |
7 { | |
8 public TableNameAttribute() | |
9 { | |
10 } | |
11 | |
12 public TableNameAttribute(string name) | |
13 { | |
14 _name = name; | |
15 } | |
16 | |
17 public TableNameAttribute(string database, string name) | |
18 { | |
19 _database = database; | |
20 _name = name; | |
21 } | |
22 | |
23 public TableNameAttribute(string database, string owner, string name) | |
24 { | |
25 _database = database; | |
26 _owner = owner; | |
27 _name = name; | |
28 } | |
29 | |
30 private string _database; public virtual string Database { get { return _database; } set { _database = value; } } | |
31 private string _owner; public virtual string Owner { get { return _owner; } set { _owner = value; } } | |
32 private string _name; public virtual string Name { get { return _name; } set { _name = value; } } | |
33 } | |
34 } |