コード例 #1
0
 public static CommentDataProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(CommentSubsiteDataProvider.CreateInstance());
     }
     return(CommentMasterDataProvider.CreateInstance());
 }
コード例 #2
0
 static CommentMasterDataProvider()
 {
     CommentMasterDataProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.AccountCenter.Data.CommentData,Hidistro.AccountCenter.Data") as CommentMasterDataProvider);
 }