Skip to content

Commit afa5bdb

Browse files
committed
Database file Created
1 parent 884da3a commit afa5bdb

9 files changed

Lines changed: 3026 additions & 6 deletions

App.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<configuration>
3+
<configSections>
4+
</configSections>
5+
<connectionStrings>
6+
<add name="Chatbot_2020_Tutorial.My.MySettings.MindQAConnectionString"
7+
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\MindQA.accdb"
8+
providerName="System.Data.OleDb" />
9+
</connectionStrings>
310
<startup>
411
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
512
</startup>

Chatbot_2020_Tutorial.vbproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
<Compile Include="Form_Chat_UI.vb">
8686
<SubType>Form</SubType>
8787
</Compile>
88+
<Compile Include="MindQADataSet.Designer.vb">
89+
<AutoGen>True</AutoGen>
90+
<DesignTime>True</DesignTime>
91+
<DependentUpon>MindQADataSet.xsd</DependentUpon>
92+
</Compile>
8893
<Compile Include="My Project\AssemblyInfo.vb" />
8994
<Compile Include="My Project\Application.Designer.vb">
9095
<AutoGen>True</AutoGen>
@@ -124,6 +129,17 @@
124129
</EmbeddedResource>
125130
</ItemGroup>
126131
<ItemGroup>
132+
<None Include="MindQADataSet.xsc">
133+
<DependentUpon>MindQADataSet.xsd</DependentUpon>
134+
</None>
135+
<None Include="MindQADataSet.xsd">
136+
<Generator>MSDataSetGenerator</Generator>
137+
<LastGenOutput>MindQADataSet.Designer.vb</LastGenOutput>
138+
<SubType>Designer</SubType>
139+
</None>
140+
<None Include="MindQADataSet.xss">
141+
<DependentUpon>MindQADataSet.xsd</DependentUpon>
142+
</None>
127143
<None Include="My Project\Application.myapp">
128144
<Generator>MyApplicationCodeGenerator</Generator>
129145
<LastGenOutput>Application.Designer.vb</LastGenOutput>
@@ -144,6 +160,9 @@
144160
<ItemGroup>
145161
<Content Include="Icon_AI_Brain.ico" />
146162
<Content Include="Icon_SpydazBrain.ico" />
163+
<Content Include="MindQA.accdb">
164+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
165+
</Content>
147166
<Content Include="Plugins\AI_Contracts.dll">
148167
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
149168
</Content>

MindQA.accdb

14.9 MB
Binary file not shown.

MindQADataSet.Designer.vb

Lines changed: 2798 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MindQADataSet.xsc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


MindQADataSet.xsd

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xs:schema id="MindQADataSet" targetNamespace="http://tempuri.org/MindQADataSet.xsd" xmlns:mstns="http://tempuri.org/MindQADataSet.xsd" xmlns="http://tempuri.org/MindQADataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
3+
<xs:annotation>
4+
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
5+
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
6+
<Connections>
7+
<Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="MindQAConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MindQAConnectionString (MySettings)" PropertyReference="ApplicationSettings.Chatbot_2020_Tutorial.My.MySettings.GlobalReference.Default.MindQAConnectionString" Provider="System.Data.OleDb" />
8+
</Connections>
9+
<Tables>
10+
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GeneralQuestionsTableAdapter" GeneratorDataComponentClassName="GeneralQuestionsTableAdapter" Name="GeneralQuestions" UserDataComponentName="GeneralQuestionsTableAdapter">
11+
<MainSource>
12+
<DbSource ConnectionRef="MindQAConnectionString (MySettings)" DbObjectName="GeneralQuestions" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
13+
<DeleteCommand>
14+
<DbCommand CommandType="Text" ModifiedByUser="false">
15+
<CommandText>DELETE FROM `GeneralQuestions` WHERE ((`ID` = ?))</CommandText>
16+
<Parameters>
17+
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
18+
</Parameters>
19+
</DbCommand>
20+
</DeleteCommand>
21+
<InsertCommand>
22+
<DbCommand CommandType="Text" ModifiedByUser="false">
23+
<CommandText>INSERT INTO `GeneralQuestions` (`Question`) VALUES (?)</CommandText>
24+
<Parameters>
25+
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Question" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Question" SourceColumnNullMapping="false" SourceVersion="Current" />
26+
</Parameters>
27+
</DbCommand>
28+
</InsertCommand>
29+
<SelectCommand>
30+
<DbCommand CommandType="Text" ModifiedByUser="false">
31+
<CommandText>SELECT ID, Question FROM GeneralQuestions</CommandText>
32+
<Parameters />
33+
</DbCommand>
34+
</SelectCommand>
35+
<UpdateCommand>
36+
<DbCommand CommandType="Text" ModifiedByUser="false">
37+
<CommandText>UPDATE `GeneralQuestions` SET `Question` = ? WHERE ((`ID` = ?))</CommandText>
38+
<Parameters>
39+
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Question" Precision="0" ProviderType="LongVarWChar" Scale="0" Size="0" SourceColumn="Question" SourceColumnNullMapping="false" SourceVersion="Current" />
40+
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
41+
</Parameters>
42+
</DbCommand>
43+
</UpdateCommand>
44+
</DbSource>
45+
</MainSource>
46+
<Mappings>
47+
<Mapping SourceColumn="ID" DataSetColumn="ID" />
48+
<Mapping SourceColumn="Question" DataSetColumn="Question" />
49+
</Mappings>
50+
<Sources />
51+
</TableAdapter>
52+
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MindQATableAdapter" GeneratorDataComponentClassName="MindQATableAdapter" Name="MindQA" UserDataComponentName="MindQATableAdapter">
53+
<MainSource>
54+
<DbSource ConnectionRef="MindQAConnectionString (MySettings)" DbObjectName="MindQA" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
55+
<InsertCommand>
56+
<DbCommand CommandType="Text" ModifiedByUser="false">
57+
<CommandText>INSERT INTO `MindQA` (`QUESTION`, `Answer`) VALUES (?, ?)</CommandText>
58+
<Parameters>
59+
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="QUESTION" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="QUESTION" SourceColumnNullMapping="false" SourceVersion="Current" />
60+
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Answer" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Answer" SourceColumnNullMapping="false" SourceVersion="Current" />
61+
</Parameters>
62+
</DbCommand>
63+
</InsertCommand>
64+
<SelectCommand>
65+
<DbCommand CommandType="Text" ModifiedByUser="false">
66+
<CommandText>SELECT QUESTION, Answer FROM MindQA</CommandText>
67+
<Parameters />
68+
</DbCommand>
69+
</SelectCommand>
70+
</DbSource>
71+
</MainSource>
72+
<Mappings>
73+
<Mapping SourceColumn="QUESTION" DataSetColumn="QUESTION" />
74+
<Mapping SourceColumn="Answer" DataSetColumn="Answer" />
75+
</Mappings>
76+
<Sources />
77+
</TableAdapter>
78+
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QAMINDTableAdapter" GeneratorDataComponentClassName="QAMINDTableAdapter" Name="QAMIND" UserDataComponentName="QAMINDTableAdapter">
79+
<MainSource>
80+
<DbSource ConnectionRef="MindQAConnectionString (MySettings)" DbObjectName="QAMIND" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
81+
<InsertCommand>
82+
<DbCommand CommandType="Text" ModifiedByUser="false">
83+
<CommandText>INSERT INTO `QAMIND` (`QUESTION`, `Answer`) VALUES (?, ?)</CommandText>
84+
<Parameters>
85+
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="QUESTION" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="QUESTION" SourceColumnNullMapping="false" SourceVersion="Current" />
86+
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Answer" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="Answer" SourceColumnNullMapping="false" SourceVersion="Current" />
87+
</Parameters>
88+
</DbCommand>
89+
</InsertCommand>
90+
<SelectCommand>
91+
<DbCommand CommandType="Text" ModifiedByUser="false">
92+
<CommandText>SELECT QUESTION, Answer FROM QAMIND</CommandText>
93+
<Parameters />
94+
</DbCommand>
95+
</SelectCommand>
96+
</DbSource>
97+
</MainSource>
98+
<Mappings>
99+
<Mapping SourceColumn="QUESTION" DataSetColumn="QUESTION" />
100+
<Mapping SourceColumn="Answer" DataSetColumn="Answer" />
101+
</Mappings>
102+
<Sources />
103+
</TableAdapter>
104+
</Tables>
105+
<Sources />
106+
</DataSource>
107+
</xs:appinfo>
108+
</xs:annotation>
109+
<xs:element name="MindQADataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="MindQADataSet" msprop:Generator_UserDSName="MindQADataSet">
110+
<xs:complexType>
111+
<xs:choice minOccurs="0" maxOccurs="unbounded">
112+
<xs:element name="GeneralQuestions" msprop:Generator_TableClassName="GeneralQuestionsDataTable" msprop:Generator_TableVarName="tableGeneralQuestions" msprop:Generator_TablePropName="GeneralQuestions" msprop:Generator_RowDeletingName="GeneralQuestionsRowDeleting" msprop:Generator_RowChangingName="GeneralQuestionsRowChanging" msprop:Generator_RowEvHandlerName="GeneralQuestionsRowChangeEventHandler" msprop:Generator_RowDeletedName="GeneralQuestionsRowDeleted" msprop:Generator_UserTableName="GeneralQuestions" msprop:Generator_RowChangedName="GeneralQuestionsRowChanged" msprop:Generator_RowEvArgName="GeneralQuestionsRowChangeEvent" msprop:Generator_RowClassName="GeneralQuestionsRow">
113+
<xs:complexType>
114+
<xs:sequence>
115+
<xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
116+
<xs:element name="Question" msprop:Generator_ColumnVarNameInTable="columnQuestion" msprop:Generator_ColumnPropNameInRow="Question" msprop:Generator_ColumnPropNameInTable="QuestionColumn" msprop:Generator_UserColumnName="Question" minOccurs="0">
117+
<xs:simpleType>
118+
<xs:restriction base="xs:string">
119+
<xs:maxLength value="536870910" />
120+
</xs:restriction>
121+
</xs:simpleType>
122+
</xs:element>
123+
</xs:sequence>
124+
</xs:complexType>
125+
</xs:element>
126+
<xs:element name="MindQA" msprop:Generator_TableClassName="MindQADataTable" msprop:Generator_TableVarName="tableMindQA" msprop:Generator_TablePropName="MindQA" msprop:Generator_RowDeletingName="MindQARowDeleting" msprop:Generator_RowChangingName="MindQARowChanging" msprop:Generator_RowEvHandlerName="MindQARowChangeEventHandler" msprop:Generator_RowDeletedName="MindQARowDeleted" msprop:Generator_UserTableName="MindQA" msprop:Generator_RowChangedName="MindQARowChanged" msprop:Generator_RowEvArgName="MindQARowChangeEvent" msprop:Generator_RowClassName="MindQARow">
127+
<xs:complexType>
128+
<xs:sequence>
129+
<xs:element name="QUESTION" msprop:Generator_ColumnVarNameInTable="columnQUESTION" msprop:Generator_ColumnPropNameInRow="QUESTION" msprop:Generator_ColumnPropNameInTable="QUESTIONColumn" msprop:Generator_UserColumnName="QUESTION" minOccurs="0">
130+
<xs:simpleType>
131+
<xs:restriction base="xs:string">
132+
<xs:maxLength value="255" />
133+
</xs:restriction>
134+
</xs:simpleType>
135+
</xs:element>
136+
<xs:element name="Answer" msprop:Generator_ColumnVarNameInTable="columnAnswer" msprop:Generator_ColumnPropNameInRow="Answer" msprop:Generator_ColumnPropNameInTable="AnswerColumn" msprop:Generator_UserColumnName="Answer" minOccurs="0">
137+
<xs:simpleType>
138+
<xs:restriction base="xs:string">
139+
<xs:maxLength value="255" />
140+
</xs:restriction>
141+
</xs:simpleType>
142+
</xs:element>
143+
</xs:sequence>
144+
</xs:complexType>
145+
</xs:element>
146+
<xs:element name="QAMIND" msprop:Generator_TableClassName="QAMINDDataTable" msprop:Generator_TableVarName="tableQAMIND" msprop:Generator_TablePropName="QAMIND" msprop:Generator_RowDeletingName="QAMINDRowDeleting" msprop:Generator_RowChangingName="QAMINDRowChanging" msprop:Generator_RowEvHandlerName="QAMINDRowChangeEventHandler" msprop:Generator_RowDeletedName="QAMINDRowDeleted" msprop:Generator_UserTableName="QAMIND" msprop:Generator_RowChangedName="QAMINDRowChanged" msprop:Generator_RowEvArgName="QAMINDRowChangeEvent" msprop:Generator_RowClassName="QAMINDRow">
147+
<xs:complexType>
148+
<xs:sequence>
149+
<xs:element name="QUESTION" msprop:Generator_ColumnVarNameInTable="columnQUESTION" msprop:Generator_ColumnPropNameInRow="QUESTION" msprop:Generator_ColumnPropNameInTable="QUESTIONColumn" msprop:Generator_UserColumnName="QUESTION" minOccurs="0">
150+
<xs:simpleType>
151+
<xs:restriction base="xs:string">
152+
<xs:maxLength value="255" />
153+
</xs:restriction>
154+
</xs:simpleType>
155+
</xs:element>
156+
<xs:element name="Answer" msprop:Generator_ColumnVarNameInTable="columnAnswer" msprop:Generator_ColumnPropNameInRow="Answer" msprop:Generator_ColumnPropNameInTable="AnswerColumn" msprop:Generator_UserColumnName="Answer" minOccurs="0">
157+
<xs:simpleType>
158+
<xs:restriction base="xs:string">
159+
<xs:maxLength value="255" />
160+
</xs:restriction>
161+
</xs:simpleType>
162+
</xs:element>
163+
</xs:sequence>
164+
</xs:complexType>
165+
</xs:element>
166+
</xs:choice>
167+
</xs:complexType>
168+
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
169+
<xs:selector xpath=".//mstns:GeneralQuestions" />
170+
<xs:field xpath="mstns:ID" />
171+
</xs:unique>
172+
<xs:unique name="QAMIND_Constraint1" msdata:ConstraintName="Constraint1">
173+
<xs:selector xpath=".//mstns:QAMIND" />
174+
<xs:field xpath="mstns:QUESTION" />
175+
</xs:unique>
176+
</xs:element>
177+
</xs:schema>

MindQADataSet.xss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


My Project/Settings.Designer.vb

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

My Project/Settings.settings

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
3-
<Profiles>
4-
<Profile Name="(Default)" />
5-
</Profiles>
6-
<Settings />
7-
</SettingsFile>
2+
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
3+
<Profiles />
4+
<Settings>
5+
<Setting Name="MindQAConnectionString" Type="(Connection string)" Scope="Application">
6+
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
7+
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
8+
&lt;ConnectionString&gt;Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\MindQA.accdb&lt;/ConnectionString&gt;
9+
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
10+
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
11+
<Value Profile="(Default)">Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\MindQA.accdb</Value>
12+
</Setting>
13+
</Settings>
14+
</SettingsFile>

0 commit comments

Comments
 (0)