Mercurial > pub > bltoolkit
annotate Source/Common/EntityBaseT.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author | cin |
---|---|
date | Tue, 10 Mar 2015 16:02:11 +0300 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 | |
3 using BLToolkit.Reflection; | |
4 | |
5 namespace BLToolkit.Common | |
6 { | |
7 [Serializable] | |
8 public abstract class EntityBase<T> : EntityBase | |
9 where T : EntityBase<T> | |
10 { | |
11 #region CreateInstance | |
12 | |
13 public static T CreateInstance() | |
14 { | |
15 return TypeAccessor.CreateInstanceEx<T>(); | |
16 } | |
17 | |
18 #endregion | |
19 | |
20 #region Clone | |
21 | |
22 public virtual T Clone() | |
23 { | |
24 return (T)TypeAccessor.Copy(this); | |
25 } | |
26 | |
27 #endregion | |
28 } | |
29 } |