0
|
1 using System.Collections.Generic;
|
|
2 using BLToolkit.DataAccess;
|
|
3 using BLToolkit.Mapping;
|
|
4 using BLToolkit.TypeBuilder;
|
|
5
|
|
6 namespace UnitTests.CS.JointureTests
|
|
7 {
|
|
8 [TableName(Name = "ARTIST", Owner = Consts.Owner)]
|
|
9 public class Artist2
|
|
10 {
|
|
11 [MapField("ID_ARTIST"), PrimaryKey, NonUpdatable]
|
|
12 public long Id { get; set; }
|
|
13
|
|
14 [MapField("ARTIST")]
|
|
15 public string Name { get; set; }
|
|
16
|
|
17 [LazyInstance(true)]
|
|
18 [Association(ThisKey = "Id", OtherKey = "ArtistID", CanBeNull = false)]
|
|
19 public virtual List<Title> Titles { get; set; }
|
|
20 }
|
|
21 } |