3 overrides of Association
System.Data.Linq (3)
Mapping\AttributedMetaModel.cs (1)
1218public override MetaAssociation Association {
Mapping\MappedMetaModel.cs (2)
1123public override MetaAssociation Association { 1810public override MetaAssociation Association {
42 references to Association
System.Data.Linq (35)
ChangeProcessor.cs (1)
178if (assoc.OtherMember.Association.IsMany) {
ChangeTracker.cs (4)
474if (mm.IsAssociation && mm.Association.IsMany) { 503if (!am.Association.IsMany) { 515if (mm.IsAssociation && mm.Association.ThisKey.Contains(key)) { 651if (mm.IsAssociation && mm.Association.IsMany) {
DataServices.cs (9)
69MetaType otherType = mm.Association.OtherType; 70if (mm.Association.IsForeignKey == isForeignKey) { 79if (mm.Association.IsMany) { 237MetaAssociation association = member.Association; 289Type elemType = member.IsAssociation && member.Association.IsMany 311this.refersToPrimaryKey = this.member.IsAssociation && this.member.Association.OtherKeyIsPrimaryKey; 330keys = this.member.Association.ThisKey; 402MetaType mt = this.member.IsAssociation ? this.member.Association.OtherType : this.member.DeclaringType; 416ReadOnlyCollection<MetaDataMember> members = this.member.IsAssociation ? this.member.Association.OtherKey : this.member.DeclaringType.IdentityMembers;
Mapping\AttributedMetaModel.cs (1)
801this.associations = this.dataMembers.Where(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly();
Mapping\MappedMetaModel.cs (1)
881this.associations = this.dataMembers.Where(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly();
SqlClient\Query\SqlBinder.cs (2)
1372SqlJoinType joinType = (link.Member.Association.IsForeignKey && !link.Member.Association.IsNullable)
SqlClient\Query\Translator.cs (13)
95&& !mm.Association.IsMany 120SqlExpression[] exprs = new SqlExpression[member.Association.ThisKey.Count]; 122MetaDataMember mm = member.Association.ThisKey[i]; 125MetaType otherType = member.Association.OtherType; 246MetaType otherType = mm.Association.OtherType; 253MetaDataMember metaMember = mm.Association.OtherKey[i]; 260Expression expr = TranslateAssociation(this.services.Context, mm.Association, source, keyExprs, lex); 267if (mm.Association.IsMany) { 342if (link1 != null && link1.Member.IsAssociation && link1.Member.Association.IsForeignKey) { 350if (link2 != null && link2.Member.IsAssociation && link2.Member.Association.IsForeignKey) { 439if ((link1 != null && link1.Member.IsAssociation && link1.Member.Association.IsForeignKey) || 440(link2 != null && link2.Member.IsAssociation && link2.Member.Association.IsForeignKey)) { 450if (!(link != null && link.Member.IsAssociation && link.Member.Association.IsForeignKey)) {
SqlClient\Reader\ObjectReaderCompiler.cs (1)
1370Type elemType = link.Member.IsAssociation && link.Member.Association.IsMany
SqlClient\SqlBuilder.cs (3)
157MetaAssociation assoc = mm.Association; 171MetaDataMember otherMember = mm.Association.OtherMember; 173string delConstr = otherMember.Association.DeleteRule;
System.Web.DynamicData (7)
DynamicData\DynamicDataExtensions.cs (1)
270if (member.IsAssociation && !member.Association.IsMany) {
DynamicData\ModelProviders\DLinqAssociationProvider.cs (5)
17MetaAssociation association = column.Member.Association; 32int count = column.Member.Association.ThisKey.Count; 34MetaDataMember thisKeyMetaDataMember = column.Member.Association.ThisKey[i]; 35MetaDataMember otherKeyMetaDataMember = column.Member.Association.OtherKey[i]; 94} else if (association.OtherMember == null || association.OtherMember.Association.IsMany) {
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
28Nullable = Member.IsAssociation ? Member.Association.IsNullable : Member.CanBeNull;