Ejemplo n.º 1
0
 private void TranslatePropertiesOfEntityType(
     ModelEntityType entityType, ViewModelEntityType viewET)
 {
     foreach (var property in entityType.Properties())
     {
         var viewProperty = TranslateProperty(viewET, property);
         Debug.Assert(viewProperty != null);
         if (viewProperty != null)
         {
             viewET.Properties.Add(viewProperty);
         }
     }
 }
Ejemplo n.º 2
0
        private void TranslateNavigationPropertiesOfEntityType(
            ModelEntityType entityType, ViewModelEntityType viewET)
        {
            var cet = entityType as ConceptualEntityType;

            if (cet != null)
            {
                foreach (var navProp in cet.NavigationProperties())
                {
                    var viewNavProp = TranslateNavigationProperty(viewET, navProp);
                    if (viewNavProp != null)
                    {
                        viewET.NavigationProperties.Add(viewNavProp);
                    }
                }
            }
        }
        private void TranslateNavigationPropertiesOfEntityType(
            ModelEntityType entityType, ViewModelEntityType viewET)
        {
            var cet = entityType as ConceptualEntityType;

            if (cet != null)
            {
                foreach (var navProp in cet.NavigationProperties())
                {
                    var viewNavProp = TranslateNavigationProperty(viewET, navProp);
                    if (viewNavProp != null)
                    {
                        viewET.NavigationProperties.Add(viewNavProp);
                    }
                }
            }
        }
 private void TranslatePropertiesOfEntityType(
     ModelEntityType entityType, ViewModelEntityType viewET)
 {
     foreach (var property in entityType.Properties())
     {
         var viewProperty = TranslateProperty(viewET, property);
         Debug.Assert(viewProperty != null);
         if (viewProperty != null)
         {
             viewET.Properties.Add(viewProperty);
         }
     }
 }