0
|
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 } |