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