Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // assignment to a class
- [TableMap("bestuurder", new string[] {"id", "naam", "voornaam", "adres", "geboortedatum", "rijksregisternummer", "rijbewijssoort"})]
- // TableMapAttribute.cs
- namespace BusinessLaag.Model.Attributes {
- public sealed class TableMapAttribute : Attribute
- {
- public Dictionary<string, string[]> TableInfo { get; set; }
- public TableMapAttribute(string tableName, string[] columnNames)
- {
- string[] s = new string[1] { tableName };
- TableInfo = new Dictionary<string, string[]>();
- TableInfo.Add("tableName", s);
- TableInfo.Add("columnNames", columnNames);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment