private void AddCEntityTypeToEntityTypeIdentityMapping( EntityType key, DatabaseObject dbObj) { EntityTypeIdentity etId = null; _cEntityTypeToEntityTypeIdentity.TryGetValue(key, out etId); if (null == etId) { etId = _cEntityTypeToEntityTypeIdentity[key] = new EntityTypeIdentity(); } etId.AddTableOrView(dbObj); }
private void AddCEntityTypeNameToEntityTypeIdentityMapping( EntityType key, DatabaseObject dbObj) { var normalizedName = key.NormalizedName; if (normalizedName == null) { Debug.Fail("null or empty Normalized Name for " + key.ToPrettyString()); return; } EntityTypeIdentity etId = null; _cEntityTypeNameToEntityTypeIdentity.TryGetValue(normalizedName, out etId); if (null == etId) { etId = _cEntityTypeNameToEntityTypeIdentity[normalizedName] = new EntityTypeIdentity(); } etId.AddTableOrView(dbObj); }