PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/mcs/class/System.Data.Linq/src/DbLinq/Test/PeopleTable.cs

https://github.com/ekovalenko-softheme/mono
C# | 63 lines | 31 code | 8 blank | 24 comment | 0 complexity | e3e568478027fba6e335be66f40dda2b MD5 | raw file
 1#region MIT license
 2// 
 3// MIT license
 4//
 5// Copyright (c) 2009 Novell, Inc.
 6// 
 7// Permission is hereby granted, free of charge, to any person obtaining a copy
 8// of this software and associated documentation files (the "Software"), to deal
 9// in the Software without restriction, including without limitation the rights
10// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11// copies of the Software, and to permit persons to whom the Software is
12// furnished to do so, subject to the following conditions:
13// 
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16// 
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23// THE SOFTWARE.
24// 
25#endregion
26
27using System;
28using System.Data;
29using System.Data.Common;
30// using System.Data.Linq;
31using System.Data.Linq.Mapping;
32using System.Linq;
33using System.IO;
34
35#if MONO_STRICT
36using System.Data.Linq;
37#else
38using DbLinq.Data.Linq;
39#endif
40
41using NUnit.Framework;
42
43using DbLinq.Null;
44
45namespace DbLinqTest {
46
47    [Table(Name="people")]
48    class BadPerson
49    {
50        public string FirstName {get; set;}
51        public string LastName {get; set;}
52    }
53
54    [Table(Name="people")]
55    class Person
56    {
57        [Column(Name="first_name")]
58        public string FirstName {get; set;}
59        [Column(Name="last_name")]
60        public string LastName {get; set;}
61    }
62}
63