Mercurial > pub > bltoolkit
comparison UnitTests/CS/JointureTests/Title.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 BLToolkit.DataAccess; | |
2 using BLToolkit.Mapping; | |
3 | |
4 namespace UnitTests.CS.JointureTests | |
5 { | |
6 [TableName(Name = "TRACK", Owner = Consts.Owner)] | |
7 public class Title | |
8 { | |
9 [MapField("ID_TRACK"), PrimaryKey, NonUpdatable] | |
10 public long Id { get; set; } | |
11 | |
12 [MapField("TRACK")] | |
13 public string Name { get; set; } | |
14 | |
15 [MapField("ID_ARTIST")] | |
16 public long? ArtistID { get; set; } | |
17 | |
18 [Association(ThisKey = "ArtistID", OtherKey = "Id", CanBeNull = false)] | |
19 public Artist Artist { get; set; } | |
20 } | |
21 } |