Esempio n. 1
0
 public virtual void OnApplicationStart(IIocContainer container, object context)
 {
     MetadataProviderBase.CreateProvider = () =>
     {
         MetadataProviderList list = new MetadataProviderList();
         var metadataProvider = new DAF.Core.Data.BLToolkit.DataAnnotationMetadataProvider();
         list.InsertProvider(0, metadataProvider);
         return list;
     };
 }
        private static MetadataProviderBase CreateInternal()
        {
            MetadataProviderList list = new MetadataProviderList();

            if (OnCreateProvider != null)
            {
                OnCreateProvider(list);
            }

            return(list);
        }
Esempio n. 3
0
		private static MetadataProviderBase CreateInternal()
		{
			var list = new MetadataProviderList();

			if (OnCreateProvider != null)
				OnCreateProvider(list);

			return list;
		}