コード例 #1
0
        public async Task <bool> Transaction(AppointmentLogEdit data, char action)
        {
            try
            {
                var val = await _adapterPattern.SingleTransaction <AppointmentLogEdit, bool>(data, "usp_AppointmentLog_Transaction", action, DataConfiguration.instanceCore);

                return(val);
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(false);
            }
        }
コード例 #2
0
        /// <summary>
        /// Transaction of Dictionary
        /// </summary>
        /// <param name="data">Object MailSetting</param>
        /// <param name="action">I: Insert, u: Update, D: Delete</param>
        /// <returns>true/false</returns>
        public async Task <int> Transaction(MailSetting data, char action)
        {
            try
            {
                var val = await _adapterPattern.SingleTransaction <MailSetting, int>(data, "usp_MailSetting_Transaction", action, DataConfiguration.instanceCore);

                return(val);
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(0);
            }
        }
コード例 #3
0
        /// <summary>
        /// Transaction of ArticleComment
        /// </summary>
        /// <param name="data"></param>
        /// <param name="action"></param>
        /// <returns>true/false</returns>
        public async Task <int> Transaction(ArticleCommentEdit data, char action)
        {
            try
            {
                var val = await _adapterPattern.SingleTransaction <ArticleCommentEdit, int>(data, "usp_ArticleComment_Transaction", action, DataConfiguration.instanceCore);

                return(val);
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
                return(0);
            }
        }
コード例 #4
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Category data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Category, bool>(data, "usp_Category_Transaction", action));
 }
コード例 #5
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Workflow data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Workflow, bool>(data, "usp_Workflow_Transaction", action));
 }
コード例 #6
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(LinkBuilding data, char action)
 {
     return(await _adapterPattern.SingleTransaction <LinkBuilding, bool>(data, "usp_LinkBuilding_Transaction", action));
 }
コード例 #7
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(CMSConfiguration data, char action)
 {
     return(await _adapterPattern.SingleTransaction <CMSConfiguration, bool>(data, "usp_Configuration_Transaction", action));
 }
コード例 #8
0
        public async Task <bool> Transaction(SystemNotification data, char action)
        {
            var val = await _adapterPattern.SingleTransaction <SystemNotification, bool>(data, "usp_SystemNotification_Transaction", action, DataConfiguration.instanceCore);

            return(val);
        }
コード例 #9
0
 public async Task <Q> SingleTransaction <T, Q>(T obj, string proc, char action, byte instance, string ignoreParas, DataConfiguration.DapperQueryOption queryOption)
 {
     return(await _adapterPattern.SingleTransaction <T, Q>(obj, proc, action, instance, ignoreParas, queryOption));
 }
コード例 #10
0
 /// <summary>
 /// Transaction of OfferAdvise
 /// </summary>
 /// <param name="data">Object OfferAdvise</param>
 /// <param name="action">I: Insert, U: Update, D: Delete</param>
 /// <returns>true/false</returns>
 public async Task <int> Transaction(OfferAdviseEdit data, char action)
 {
     return(await _adapterPattern.SingleTransaction <OfferAdviseEdit, int>(data, "usp_OfferAdvise_Transaction", action, DataConfiguration.instanceCore));
 }
コード例 #11
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Language data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Language, bool>(data, "usp_Language_Transaction", action));
 }
コード例 #12
0
 public async Task <int> Transaction(EmailMarketing data, char action)
 {
     return(await _adapterPattern.SingleTransaction <EmailMarketing, int>(data, "usp_EmailMarketing_Transaction", action, DataConfiguration.instanceCore));
 }
コード例 #13
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task<bool> Transaction(Slider data, char action)
 {
     return await _adapterPattern.SingleTransaction<Slider, bool>(data, "usp_Slider_Transaction", action);
 }
コード例 #14
0
 /// <summary>
 /// Transaction of Survey
 /// </summary>
 /// <param name="data">Object Survey</param>
 /// <param name="action">I: Insert, U: Update, D: Delete</param>
 /// <returns>true/false</returns>
 public async Task <int> Transaction(Survey data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Survey, int>(data, "usp_Survey_Transaction", action, DataConfiguration.instanceCore));
 }
コード例 #15
0
ファイル: PostImpl.cs プロジェクト: xuanthachit/PatientPortal
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <int> Transaction(PostEdit data, char action)
 {
     return(await _adapterPattern.SingleTransaction <PostEdit, int>(data, "usp_Post_Transaction", action));
 }
コード例 #16
0
        /// <summary>
        /// Transaction of Group
        /// </summary>
        /// <param name="data">Object Group</param>
        /// <param name="action">I: Insert, U:Update, D: Delete</param>
        /// <returns>true/false</returns>
        public async Task <int> Transaction(Group data, char action)
        {
            var val = await _adapterPattern.SingleTransaction <Group, int>(data, "usp_Group_Transaction", action, DataConfiguration.instanceCore);

            return(val);
        }
コード例 #17
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Advertise data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Advertise, bool>(data, "usp_Advertise_Transaction", action));
 }
コード例 #18
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Department data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Department, bool>(data, "usp_Department_Transaction", action, DataConfiguration.instanceCore));
 }
コード例 #19
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Setting data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Setting, bool>(data, "usp_Setting_Transaction", action, DataConfiguration.instanceCore));
 }
コード例 #20
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(GalleryStore data, char action)
 {
     return(await _adapterPattern.SingleTransaction <GalleryStore, bool>(data, "usp_GalleryStore_Transaction", action));
 }
コード例 #21
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(DepartmentServices data, char action)
 {
     return(await _adapterPattern.SingleTransaction <DepartmentServices, bool>(data, "usp_DepartmentServices_Transaction", action, 2));
 }
コード例 #22
0
 /// <summary>
 /// Transaction
 /// </summary>
 /// <param name="data"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public async Task <bool> Transaction(Feature data, char action)
 {
     return(await _adapterPattern.SingleTransaction <Feature, bool>(data, "usp_Feature_Transaction", action));
 }