3 overrides of DeclaringType
System.Data.Linq (3)
Mapping\AttributedMetaModel.cs (1)
1077public override MetaType DeclaringType {
Mapping\MappedMetaModel.cs (2)
1032public override MetaType DeclaringType { 1729public override MetaType DeclaringType {
27 references to DeclaringType
System.Data.Linq (27)
ChangeConflicts.cs (1)
318if (!member.DeclaringType.Type.IsAssignableFrom(this.database.GetType())) {
ChangeTracker.cs (2)
450if (!mm.IsAssociation && (this.Type.Type == instanceType || mm.DeclaringType.Type.IsAssignableFrom(instanceType))) { 530if (this.Type.Type != instanceType && !mm.DeclaringType.Type.IsAssignableFrom(instanceType)) {
DataContext.cs (4)
407if(!assoc.ThisMember.DeclaringType.IsEntity) { 408throw Error.NonEntityAssociationMapping(assoc.ThisMember.DeclaringType.Type, assoc.ThisMember.Name, assoc.ThisMember.DeclaringType.Type); 411throw Error.NonEntityAssociationMapping(assoc.ThisMember.DeclaringType.Type, assoc.ThisMember.Name, assoc.OtherType.Type);
DataServices.cs (10)
238Type rootType = association.ThisMember.DeclaringType.InheritanceRoot.Type; 240if (rootType != association.ThisMember.DeclaringType.Type) { 241thisSource = Expression.Call(typeof(Enumerable), "Cast", new Type[] { association.ThisMember.DeclaringType.Type }, thisSource); 243Expression thisInstance = Expression.Call(typeof(Enumerable), "FirstOrDefault", new Type[] { association.ThisMember.DeclaringType.Type }, 256Expression query = this.GetObjectQuery(member.DeclaringType, keyValues); 260if (elementType != member.DeclaringType.Type) 261e = Expression.Convert(e, member.DeclaringType.Type); 333keys = this.member.DeclaringType.IdentityMembers; 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 (2)
403throw Error.DiscriminatorClrTypeNotSupported(this.Discriminator.DeclaringType.Name, this.Discriminator.Name, this.Discriminator.Type); 654throw Error.IdentityClrTypeNotSupported(mm.DeclaringType, mm.Name, mm.Type);
Mapping\MappedMetaModel.cs (3)
435throw Error.DiscriminatorClrTypeNotSupported(this.Discriminator.DeclaringType.Name, this.Discriminator.Name, this.Discriminator.Type); 723throw Error.IdentityClrTypeNotSupported(mm.DeclaringType, mm.Name, mm.Type); 1526return string.Format(Globalization.CultureInfo.InvariantCulture, "{0} ->{1} {2}", ThisMember.DeclaringType.Name, IsMany ? "*" : "", OtherType.Name);
SqlClient\Query\SqlBinder.cs (2)
676MetaType otherType = mm.DeclaringType.InheritanceRoot; 1046MetaType otherType = mdm.DeclaringType.InheritanceRoot;
SqlClient\Query\Translator.cs (1)
130MetaType thisType = member.DeclaringType;
SqlClient\Reader\ObjectReaderCompiler.cs (2)
1124this.GenerateExpressionForType(expr, memberType, mm.DeclaringType.IsEntity ? locInstance : null); 1233Type eType = this.Generate(expr, mm.DeclaringType.IsEntity ? locInstance : null);