comparison UnitTests/CS/JointureTests/Artist2.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 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 }