Esempio n. 1
0
 public void SetMetaData(IPageStyle style, IMetaData metaData)
 {
     MainResolver.ReadMetaData(metaData.GetTableScheme(MainResolver.TableName));
     foreach (var resolver in fDetailResolvers)
     {
         resolver.Item1.ReadMetaData(metaData.GetTableScheme(resolver.Item1.TableName));
     }
 }
 public virtual void SetMetaData(IPageStyle style, IMetaData metaData)
 {
     if (TestPageStyleForMetaData(style))
     {
         ITableSchemeEx scheme = metaData.GetTableScheme(MainResolver.TableName);
         if (scheme != null)
         {
             MainResolver.ReadMetaData(scheme);
             OnReadMetaData(MainResolver, style, scheme);
         }
     }
 }
        public virtual void SetMetaData(IPageStyle style, IMetaData metaData)
        {
            ITableSchemeEx scheme;

            if (TestPageStyleForMetaData(style))
            {
                scheme = metaData.GetTableScheme(MainResolver.TableName);
                if (scheme != null)
                {
                    MainResolver.ReadMetaData(scheme);
                    OnReadMetaData(MainResolver, style, scheme);
                }

                foreach (var childTable in ChildTables)
                {
                    scheme = metaData.GetTableScheme(childTable.Resolver.TableName);
                    if (scheme != null)
                    {
                        childTable.Resolver.ReadMetaData(scheme);
                        OnReadMetaData(childTable.Resolver, style, scheme);
                    }
                }
            }
        }