コード例 #1
0
        public static Int32 DeleteSurvey(Int32 surveyId)
        {
            SurveyDSTableAdapter ta = new SurveyDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.Delete(surveyId));
        }
コード例 #2
0
        public static Int32 UpdateSurvey(Int32 surveyId, string surveyName)
        {
            SurveyDSTableAdapter ta = new SurveyDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.Update(surveyId, surveyName));
        }
コード例 #3
0
        public static SurveyDS.SurveyDSDataTable SelectSurvey(Int32 surveyId)
        {
            SurveyDSTableAdapter ta = new SurveyDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetData(surveyId));
        }
コード例 #4
0
        public static Int32 InsertSurvey(string surveyName)
        {
            SurveyDSTableAdapter ta = new SurveyDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(Convert.ToInt32(ta.InsertSurvey(surveyName)));
        }
コード例 #5
0
        public static SurveyDS.SurveyDSDataTable GetAllSurveys()
        {
            SurveyDSTableAdapter ta = new SurveyDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetAllSurveys());
        }