コード例 #1
0
        public static PropertyInfo[] GetComplexMembers(this EntityObjectStore.LocalContext context, Type type)
        {
            StructuralType st = context.GetStructuralType(type);

            if (st != null)
            {
                IEnumerable <EdmMember> cm = st.Members.Where(m => m.TypeUsage.EdmType is ComplexType);
                return(type.GetProperties().Join(cm, pi => pi.Name, em => em.Name, (pi, em) => pi).ToArray());
            }
            return(new PropertyInfo[] {});
        }
コード例 #2
0
 private static EntityType GetEntityType(this EntityObjectStore.LocalContext context, Type type)
 {
     return(context.GetStructuralType(type) as EntityType);
 }