3 types derived from MetaDataMember
System.Data.Linq (3)
Mapping\AttributedMetaModel.cs (1)
1007
internal sealed class AttributedMetaDataMember :
MetaDataMember
{
Mapping\MappedMetaModel.cs (2)
934
internal sealed class MappedDataMember :
MetaDataMember
{
1706
internal sealed class UnmappedDataMember :
MetaDataMember
{
247 references to MetaDataMember
System.Data.Linq (235)
ChangeConflicts.cs (5)
304
foreach (
MetaDataMember
metaMember in trackedObject.Type.PersistentDataMembers) {
316
private bool HasMemberConflict(
MetaDataMember
member) {
325
private bool AreEqual(
MetaDataMember
member, object v1, object v2) {
378
private
MetaDataMember
metaMember;
384
internal MemberChangeConflict(ObjectChangeConflict conflict,
MetaDataMember
metaMember) {
ChangeDirector.cs (11)
234
List<
MetaDataMember
> membersToSync = GetAutoSyncMembers(mt, UpdateType.Insert);
250
private Expression CreateAutoSync(List<
MetaDataMember
> membersToSync, Expression source) {
254
foreach (
MetaDataMember
mm in membersToSync) {
260
private static List<
MetaDataMember
> GetAutoSyncMembers(MetaType metaType, UpdateType updateType) {
261
List<
MetaDataMember
> membersToSync = new List<
MetaDataMember
>();
262
foreach (
MetaDataMember
metaMember in metaType.PersistentDataMembers.OrderBy(m => m.Ordinal)) {
289
List<
MetaDataMember
> membersToSync = GetAutoSyncMembers(item.Type, updateType);
294
foreach (
MetaDataMember
mm in membersToSync) {
331
List<
MetaDataMember
> membersToSync = GetAutoSyncMembers(rowType, UpdateType.Update);
360
foreach (
MetaDataMember
mm in mt.PersistentDataMembers) {
ChangeProcessor.cs (4)
220
MetaDataMember
thisMember = assoc.ThisMember;
236
MetaDataMember
thisKey = assoc.ThisKey[i];
339
foreach (
MetaDataMember
mem in tracked.Type.PersistentDataMembers) {
622
foreach (
MetaDataMember
mm in x.Type.IdentityMembers) {
ChangeTracker.cs (32)
414
private void AssignMember(object instance,
MetaDataMember
mm, object value) {
447
foreach (
MetaDataMember
mm in type.PersistentDataMembers) {
473
foreach (
MetaDataMember
mm in type.PersistentDataMembers) {
483
internal override void RefreshMember(
MetaDataMember
mm, RefreshMode mode, object freshValue) {
502
foreach (
MetaDataMember
am in this.GetAssociationsForKey(mm)) {
513
private IEnumerable<
MetaDataMember
> GetAssociationsForKey(
MetaDataMember
key) {
514
foreach (
MetaDataMember
mm in this.type.PersistentDataMembers) {
529
foreach (
MetaDataMember
mm in rootMetaType.GetInheritanceType(instanceType).PersistentDataMembers) {
569
MetaDataMember
mm = assoc.ThisMember;
578
MetaDataMember
accThis = assoc.ThisKey[i];
579
MetaDataMember
accParent = assoc.OtherKey[i];
589
MetaDataMember
accThis = assoc.ThisKey[i];
608
foreach (
MetaDataMember
key in assoc.ThisKey) {
647
internal override bool HasChangedValue(
MetaDataMember
mm) {
682
foreach (
MetaDataMember
mm in this.type.PersistentDataMembers) {
691
foreach (
MetaDataMember
mm in this.type.PersistentDataMembers) {
705
private bool IsModifiedMember(
MetaDataMember
member) {
722
IEnumerable<
MetaDataMember
> deferredMembers = this.Type.PersistentDataMembers.Where(p => p.IsDeferred && !p.IsAssociation);
723
foreach (
MetaDataMember
deferredMember in deferredMembers) {
732
private bool HasDeferredLoader(
MetaDataMember
deferredMember) {
758
IEnumerable<
MetaDataMember
> deferredMembers = this.Type.PersistentDataMembers.Where(p => p.IsDeferred && !p.IsAssociation);
759
foreach (
MetaDataMember
deferredMember in deferredMembers) {
769
private void InitializeDeferredLoader(
MetaDataMember
deferredMember) {
790
internal override bool IsPendingGeneration(IEnumerable<
MetaDataMember
> key) {
792
foreach (
MetaDataMember
member in key) {
801
internal override bool IsMemberPendingGeneration(
MetaDataMember
keyMember) {
828
MetaDataMember
otherMember = assoc.OtherKey[index];
883
internal abstract bool HasChangedValue(
MetaDataMember
mm);
909
internal abstract void RefreshMember(
MetaDataMember
member, RefreshMode mode, object freshValue);
918
internal abstract bool IsPendingGeneration(IEnumerable<
MetaDataMember
> keyMembers);
919
internal abstract bool IsMemberPendingGeneration(
MetaDataMember
keyMember);
DataServices.cs (21)
22
Dictionary<
MetaDataMember
, IDeferredSourceFactory> factoryMap;
31
this.factoryMap = new Dictionary<
MetaDataMember
, IDeferredSourceFactory>();
67
foreach (
MetaDataMember
mm in type.PersistentDataMembers) {
99
this.factoryMap = new Dictionary<
MetaDataMember
, IDeferredSourceFactory>();
104
foreach (
MetaDataMember
mm in type.IdentityMembers) {
112
foreach(
MetaDataMember
mm in association.ThisKey) {
219
MetaDataMember
metaMember = type.IdentityMembers[i];
231
internal Expression GetDataMemberQuery(
MetaDataMember
member, Expression[] keyValues) {
270
private static Expression[] BuildKeyExpressions(object[] keyValues, ReadOnlyCollection<
MetaDataMember
> keyMembers) {
273
MetaDataMember
metaMember = keyMembers[i];
281
public IDeferredSourceFactory GetDeferredSourceFactory(
MetaDataMember
member) {
302
MetaDataMember
member;
308
internal DeferredSourceFactory(
MetaDataMember
member, CommonDataServices services) {
328
ReadOnlyCollection<
MetaDataMember
> keys = null;
416
ReadOnlyCollection<
MetaDataMember
> members = this.member.IsAssociation ? this.member.Association.OtherKey : this.member.DeclaringType.IdentityMembers;
418
MetaDataMember
mm = members[i];
524
Dictionary<
MetaDataMember
, object> keys = new Dictionary<
MetaDataMember
, object>();
533
private bool GetKeysFromPredicate(MetaType type, Dictionary<
MetaDataMember
, object> keys, Expression expr) {
556
private static bool GetKeyFromPredicate(MetaType type, Dictionary<
MetaDataMember
, object> keys, Expression mex, Expression vex) {
565
MetaDataMember
mm = type.GetDataMember(memex.Member);
IdentityManager.cs (1)
78
MetaDataMember
mm = type.IdentityMembers[0];
Mapping\AttributedMetaModel.cs (32)
466
foreach (
MetaDataMember
mem in type.PersistentDataMembers) {
530
Dictionary<MetaPosition,
MetaDataMember
> dataMemberMap;
531
ReadOnlyCollection<
MetaDataMember
> dataMembers;
532
ReadOnlyCollection<
MetaDataMember
> persistentMembers;
533
ReadOnlyCollection<
MetaDataMember
> identities;
534
MetaDataMember
dbGeneratedIdentity;
535
MetaDataMember
version;
536
MetaDataMember
discriminator;
564
private void ValidatePrimaryKeyMember(
MetaDataMember
mm) {
597
this.dataMemberMap = new Dictionary<MetaPosition,
MetaDataMember
>();
606
MetaDataMember
mm = new AttributedMetaDataMember(this, fi, ordinal);
624
MetaDataMember
mm = new AttributedMetaDataMember(this, pi, ordinal);
640
this.dataMembers = new List<
MetaDataMember
>(this.dataMemberMap.Values).AsReadOnly();
644
private void InitSpecialMember(
MetaDataMember
mm) {
692
public override
MetaDataMember
DBGeneratedIdentityMember {
695
public override
MetaDataMember
VersionMember {
698
public override
MetaDataMember
Discriminator {
703
foreach(
MetaDataMember
member in this.PersistentDataMembers) {
786
public override ReadOnlyCollection<
MetaDataMember
> DataMembers {
789
public override ReadOnlyCollection<
MetaDataMember
> PersistentDataMembers {
792
public override ReadOnlyCollection<
MetaDataMember
> IdentityMembers {
808
public override
MetaDataMember
GetDataMember(MemberInfo mi) {
811
MetaDataMember
mm = null;
1313
MetaDataMember
otherMember;
1314
ReadOnlyCollection<
MetaDataMember
> thisKey;
1315
ReadOnlyCollection<
MetaDataMember
> otherKey;
1343
foreach (
MetaDataMember
mm in thisKey) {
1363
foreach (
MetaDataMember
omm in this.otherType.PersistentDataMembers) {
1377
public override
MetaDataMember
ThisMember {
1380
public override
MetaDataMember
OtherMember {
1383
public override ReadOnlyCollection<
MetaDataMember
> ThisKey {
1386
public override ReadOnlyCollection<
MetaDataMember
> OtherKey {
Mapping\MappedMetaModel.cs (61)
460
foreach (
MetaDataMember
mem in type.PersistentDataMembers) {
568
Dictionary<object,
MetaDataMember
> dataMemberMap;
569
ReadOnlyCollection<
MetaDataMember
> dataMembers;
570
ReadOnlyCollection<
MetaDataMember
> persistentDataMembers;
571
ReadOnlyCollection<
MetaDataMember
> identities;
572
MetaDataMember
dbGeneratedIdentity;
573
MetaDataMember
version;
574
MetaDataMember
discriminator;
601
private void ValidatePrimaryKeyMember(
MetaDataMember
mm) {
634
Dictionary<object,
MetaDataMember
> map = new Dictionary<object,
MetaDataMember
>();
635
List<
MetaDataMember
> dMembers = new List<
MetaDataMember
>();
658
MetaDataMember
mm;
678
MetaDataMember
mm;
712
private void InitSpecialMember(
MetaDataMember
mm) {
767
public override
MetaDataMember
DBGeneratedIdentityMember {
770
public override
MetaDataMember
VersionMember {
773
public override
MetaDataMember
Discriminator {
778
foreach (
MetaDataMember
member in this.PersistentDataMembers) {
866
public override ReadOnlyCollection<
MetaDataMember
> DataMembers {
869
public override ReadOnlyCollection<
MetaDataMember
> PersistentDataMembers {
872
public override ReadOnlyCollection<
MetaDataMember
> IdentityMembers {
888
public override
MetaDataMember
GetDataMember(MemberInfo mi) {
891
MetaDataMember
mm;
1215
MetaDataMember
otherMember;
1217
ReadOnlyCollection<
MetaDataMember
> thisKey;
1218
ReadOnlyCollection<
MetaDataMember
> otherKey;
1248
foreach (
MetaDataMember
mm in this.thisKey) {
1274
foreach (
MetaDataMember
omm in this.otherType.DataMembers) {
1283
public override
MetaDataMember
ThisMember {
1286
public override ReadOnlyCollection<
MetaDataMember
> ThisKey {
1289
public override
MetaDataMember
OtherMember {
1292
public override ReadOnlyCollection<
MetaDataMember
> OtherKey {
1490
protected static ReadOnlyCollection<
MetaDataMember
> MakeKeys(MetaType mtype, string keyFields) {
1492
MetaDataMember
[] members = new
MetaDataMember
[names.Length];
1504
return new List<
MetaDataMember
>(members).AsReadOnly();
1510
protected static bool AreEqual(IEnumerable<
MetaDataMember
> key1, IEnumerable<
MetaDataMember
> key2) {
1511
using (IEnumerator<
MetaDataMember
> e1 = key1.GetEnumerator()) {
1512
using (IEnumerator<
MetaDataMember
> e2 = key2.GetEnumerator()) {
1533
Dictionary<object,
MetaDataMember
> dataMemberMap;
1534
ReadOnlyCollection<
MetaDataMember
> dataMembers;
1539
private static ReadOnlyCollection<
MetaDataMember
> _emptyDataMembers = new List<
MetaDataMember
>().AsReadOnly();
1565
public override
MetaDataMember
DBGeneratedIdentityMember {
1568
public override
MetaDataMember
VersionMember {
1571
public override
MetaDataMember
Discriminator {
1621
public override ReadOnlyCollection<
MetaDataMember
> DataMembers {
1627
public override ReadOnlyCollection<
MetaDataMember
> PersistentDataMembers {
1630
public override ReadOnlyCollection<
MetaDataMember
> IdentityMembers {
1639
public override
MetaDataMember
GetDataMember(MemberInfo mi) {
1646
Dictionary<object,
MetaDataMember
> map = new Dictionary<object,
MetaDataMember
>();
1647
foreach (
MetaDataMember
mm in this.dataMembers) {
1655
MetaDataMember
mdm;
1664
List<
MetaDataMember
> dMembers = new List<
MetaDataMember
>();
1668
MetaDataMember
mm = new UnmappedDataMember(this, fi, ordinal);
1673
MetaDataMember
mm = new UnmappedDataMember(this, pi, ordinal);
Mapping\MetaModel.cs (11)
133
public abstract
MetaDataMember
DBGeneratedIdentityMember { get; }
137
public abstract
MetaDataMember
VersionMember { get; }
141
public abstract
MetaDataMember
Discriminator { get; }
207
public abstract ReadOnlyCollection<
MetaDataMember
> DataMembers { get; }
211
public abstract ReadOnlyCollection<
MetaDataMember
> PersistentDataMembers { get; }
215
public abstract ReadOnlyCollection<
MetaDataMember
> IdentityMembers { get; }
225
public abstract
MetaDataMember
GetDataMember(MemberInfo member);
435
public abstract
MetaDataMember
ThisMember { get; }
439
public abstract
MetaDataMember
OtherMember { get; }
443
public abstract ReadOnlyCollection<
MetaDataMember
> ThisKey { get; }
447
public abstract ReadOnlyCollection<
MetaDataMember
> OtherKey { get; }
Provider\IDataServices.cs (1)
14
IDeferredSourceFactory GetDeferredSourceFactory(
MetaDataMember
member);
SqlClient\Common\SqlFactory.cs (3)
497
internal SqlMember Member(SqlExpression expr,
MetaDataMember
member) {
504
MetaDataMember
metaDataMember = metaType.GetDataMember(member);
581
internal ProviderType Default(
MetaDataMember
member) {
SqlClient\Common\SqlNode.cs (6)
1474
private
MetaDataMember
member;
1478
internal SqlColumn(Type clrType, ProviderType sqlType, string name,
MetaDataMember
member, SqlExpression expr, Expression sourceExpression)
1512
internal
MetaDataMember
MetaMember {
1793
private
MetaDataMember
member;
1798
internal SqlLink(object id, MetaType rowType, Type clrType, ProviderType sqlType, SqlExpression expression,
MetaDataMember
member, IEnumerable<SqlExpression> keyExpressions, SqlExpression expansion, Expression sourceExpression)
1825
internal
MetaDataMember
Member {
SqlClient\Query\QueryConverter.cs (5)
2413
foreach (
MetaDataMember
mm in itemMetaType.PersistentDataMembers) {
2429
MetaDataMember
id = itemMetaType.DBGeneratedIdentityMember;
2502
private bool IsDbGeneratedKeyProjectionOnly(Expression projection,
MetaDataMember
keyMember) {
2517
private SqlExpression GetIdentityExpression(
MetaDataMember
id, bool isOutputFromInsert) {
2597
MetaDataMember
mdm = metaType.GetDataMember(mmi.Member);
SqlClient\Query\SqlBinder.cs (7)
675
MetaDataMember
mm = sox.MetaType.GetDataMember(ma.Member);
783
MetaDataMember
mm = GetRequiredInheritanceDataMember(tab.RowType, m.Member);
798
MetaDataMember
mm = GetRequiredInheritanceDataMember(fc.RowType, m.Member);
830
MetaDataMember
mm = GetRequiredInheritanceDataMember(row.RowType, m.Member);
848
MetaDataMember
mm = sn.MetaType.PersistentDataMembers.FirstOrDefault(p => p.Member == m.Member);
994
private static
MetaDataMember
GetRequiredInheritanceDataMember(MetaType type, MemberInfo mi) {
1042
MetaDataMember
mdm = link.Member;
SqlClient\Query\SqlReorderer.cs (1)
97
foreach (
MetaDataMember
mm in rowType.IdentityMembers) {
SqlClient\Query\Translator.cs (15)
52
MetaDataMember
discriminator = root.Discriminator;
88
private SqlNew BuildProjectionInternal(SqlExpression item, MetaType rowType, IEnumerable<
MetaDataMember
> members, bool allowDeferred, SqlLink link, Expression source) {
90
foreach (
MetaDataMember
mm in members) {
118
private SqlLink BuildLink(SqlExpression item,
MetaDataMember
member, Expression source) {
122
MetaDataMember
mm = member.Association.ThisKey[i];
133
foreach (
MetaDataMember
mm in thisType.IdentityMembers) {
164
internal static Expression WhereClauseFromSourceAndKeys(Expression source,
MetaDataMember
[] keyMembers, Expression [] keyValues) {
169
MetaDataMember
metaMember = keyMembers[i];
216
private static Expression[] GetKeyValues(Expression expr, ReadOnlyCollection<
MetaDataMember
> keys) {
218
foreach(
MetaDataMember
key in keys){
242
MetaDataMember
mm = link.Member;
253
MetaDataMember
metaMember = mm.Association.OtherKey[i];
504
private IEnumerable<
MetaDataMember
> GetIdentityMembers(MetaType type) {
512
List<
MetaDataMember
> members = GetIdentityMembers(type).ToList();
515
foreach (
MetaDataMember
mm in members) {
SqlClient\Reader\ObjectReaderCompiler.cs (12)
963
MetaDataMember
mm = sn.MetaType.GetDataMember(ma.Member);
1018
MetaDataMember
mm = sn.MetaType.GetDataMember(ma.Member);
1053
private void GenerateMemberAssignment(
MetaDataMember
mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) {
1106
private void GenerateAssignValue(
MetaDataMember
mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) {
1155
private void GenerateAssignDeferredEntitySet(
MetaDataMember
mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) {
1217
private void GenerateAssignEntitySet(
MetaDataMember
mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) {
1275
private void GenerateAssignDeferredReference(
MetaDataMember
mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) {
1363
int iGlobalLink = this.AddGlobal(typeof(
MetaDataMember
), link.Member);
2573
MetaDataMember
member = (
MetaDataMember
)this.Globals[iGlobalLink];
2583
MetaDataMember
member = (
MetaDataMember
)this.Globals[iGlobalLink];
SqlClient\SqlBuilder.cs (7)
90
foreach (
MetaDataMember
mm in type.DataMembers) {
126
foreach (
MetaDataMember
mm in table.RowType.IdentityMembers) {
134
private static string BuildKey(IEnumerable<
MetaDataMember
> members) {
136
foreach (
MetaDataMember
mm in members) {
155
foreach (
MetaDataMember
mm in type.DataMembers) {
171
MetaDataMember
otherMember = mm.Association.OtherMember;
191
private static string GetDbType(
MetaDataMember
mm) {
System.Web.DynamicData (10)
DynamicData\DynamicDataExtensions.cs (1)
269
foreach (System.Data.Linq.Mapping.
MetaDataMember
member in metaTable.RowType.DataMembers) {
DynamicData\ModelProviders\DLinqAssociationProvider.cs (2)
34
MetaDataMember
thisKeyMetaDataMember = column.Member.Association.ThisKey[i];
35
MetaDataMember
otherKeyMetaDataMember = column.Member.Association.OtherKey[i];
DynamicData\ModelProviders\DLinqColumnProvider.cs (3)
19
public DLinqColumnProvider(DLinqTableProvider table,
MetaDataMember
member)
113
internal
MetaDataMember
Member {
126
private static Type GetMemberType(
MetaDataMember
member) {
DynamicData\ModelProviders\DLinqTableProvider.cs (4)
26
var members = new List<
MetaDataMember
>(rowType.DataMembers);
30
MetaDataMember
member = members.FirstOrDefault(m => m.Member.Name == propInfo.Name);
38
foreach (
MetaDataMember
member in members) {
45
private void AddColumn(DLinqDataModelProvider dataModel,
MetaDataMember
member, PropertyInfo propInfo) {
System.Web.Extensions (2)
UI\WebControls\LinqDataSourceView.cs (2)
626
private ReadOnlyCollection<
MetaDataMember
> GetTableMetaDataMembers(ITable table, Type dataObjectType) {
868
IDictionary<string,
MetaDataMember
> columns = GetTableMetaDataMembers((ITable)EntitySet, entityType).ToDictionary(c => c.Member.Name);