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);
        }
		private static MetadataProviderBase CreateInternal()
		{
			var list = new MetadataProviderList();

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

			return list;
		}