예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
        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);
        }
        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);
        }