|
1 | 1 | using System;
|
2 |
| -using System.Collections; |
3 | 2 | using System.Collections.Generic;
|
4 |
| -using System.Linq.Expressions; |
5 |
| -using System.Reflection; |
6 |
| -using System.Xml; |
7 | 3 | using FluentNHibernate.Mapping.Builders;
|
8 | 4 | using FluentNHibernate.MappingModel;
|
9 | 5 | using FluentNHibernate.MappingModel.Collections;
|
10 | 6 | using FluentNHibernate.Utils;
|
11 |
| -using NHibernate.Persister.Entity; |
12 | 7 |
|
13 | 8 | namespace FluentNHibernate.Mapping
|
14 | 9 | {
|
15 | 10 | public class ManyToManyPart<TChild> : ToManyBase<ManyToManyPart<TChild>, TChild, ManyToManyMapping>
|
16 | 11 | {
|
17 | 12 | private readonly IList<FilterMapping> childFilters = new List<FilterMapping>();
|
18 |
| - private readonly Type entity; |
19 | 13 | private readonly FetchTypeExpression<ManyToManyPart<TChild>> fetch;
|
20 | 14 | private readonly NotFoundExpression<ManyToManyPart<TChild>> notFound;
|
21 |
| - private readonly Type childType; |
22 | 15 | readonly AttributeStore sharedColumnAttributes = new AttributeStore();
|
23 | 16 |
|
24 | 17 | public ManyToManyPart(Type entity, Member property)
|
25 | 18 | : this(entity, property, property.PropertyType)
|
26 | 19 | {
|
27 |
| - childType = property.PropertyType; |
28 | 20 | }
|
29 | 21 |
|
30 | 22 | protected ManyToManyPart(Type entity, Member member, Type collectionType)
|
31 | 23 | : base(entity, member, collectionType)
|
32 | 24 | {
|
33 |
| - this.entity = entity; |
34 |
| - childType = collectionType; |
35 |
| - |
36 | 25 | fetch = new FetchTypeExpression<ManyToManyPart<TChild>>(this, value => collectionAttributes.Set(x => x.Fetch, value));
|
37 | 26 | notFound = new NotFoundExpression<ManyToManyPart<TChild>>(this, value => relationshipMapping.NotFound = value);
|
38 | 27 |
|
|
0 commit comments