File tree Expand file tree Collapse file tree
SharpRepository.XmlRepository Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ protected override IQueryable<T> BaseQuery(IFetchStrategy<T> fetchStrategy = nul
6565
6666 private static IEnumerable < T > CloneList ( IList < T > list )
6767 {
68- // when you Google deep copy of generic list every answer uses either the IClonable interface on the T or haivng the T be Serializable
68+ // when you Google deep copy of generic list every answer uses either the IClonable interface on the T or having the T be Serializable
6969 // since we can't really put those constraints on T I'm going to do it via reflection
7070
7171 var type = typeof ( T ) ;
@@ -91,7 +91,7 @@ protected override void AddItem(T entity)
9191 {
9292 TKey id ;
9393
94- if ( GetPrimaryKey ( entity , out id ) && object . Equals ( id , default ( TKey ) ) )
94+ if ( GetPrimaryKey ( entity , out id ) && Equals ( id , default ( TKey ) ) )
9595 {
9696 id = GeneratePrimaryKey ( ) ;
9797 SetPrimaryKey ( entity , id ) ;
You can’t perform that action at this time.
0 commit comments