Пример #1
0
 private void VisitProperties(MetaStructuredType structuredType, IEnumerable <IEdmProperty> properties)
 {
     foreach (var property in properties)
     {
         MetaProperty metaProperty = new MetaProperty();
         metaProperty.Fullname     = structuredType.QualifiedName;
         metaProperty.Name         = property.Name;
         metaProperty.IsCollection = property.Type.IsCollection();
         metaProperty.Nullable     = property.Type.IsNullable;
     }
 }
Пример #2
0
        private void VisitNavProperties(MetaStructuredType structuredType, IEnumerable <IEdmNavigationProperty> navProperties)
        {
            foreach (var property in navProperties)
            {
                MetaNavigationProperty metaProperty = new MetaNavigationProperty();
                metaProperty.Fullname     = structuredType.QualifiedName;
                metaProperty.Name         = property.Name;
                metaProperty.IsCollection = property.Type.IsCollection();
                metaProperty.Nullable     = property.Type.IsNullable;

                metaProperty.Type = GetOrBuildType(property.Type);

                _navProperties[metaProperty.Fullname] = metaProperty;
            }
        }
Пример #3
0
 private void VisitNavProperties(MetaStructuredType structuredType, IEnumerable <IEdmNavigationProperty> navProperties)
 {
     foreach (var property in navProperties)
     {
     }
 }