質問編集履歴

9

文書の修正

2017/10/16 01:21

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -72,6 +72,10 @@
72
72
 
73
73
  すべてのTableに対して作成予定です。
74
74
 
75
+ また、主キー(一意キー)の設定を行います。
76
+
77
+ 参考URL:http://www.atmarkit.co.jp/ait/articles/0403/17/news087.html
78
+
75
79
 
76
80
 
77
81
  **3.C#プロジェクトに組み込み**

8

追記

2017/10/16 01:21

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -19,6 +19,8 @@
19
19
 
20
20
 
21
21
  **1.SqlServerのデータ移行**
22
+
23
+ はじめに現在のデータのバックアップをします。(Excelなどにデータ貼り付け)
22
24
 
23
25
  例:
24
26
 

7

誤字

2017/10/16 00:52

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -95,99 +95,3 @@
95
95
 
96
96
 
97
97
  上記をLINQ to XMLで実現予定です。
98
-
99
-
100
-
101
- 読み込み例
102
-
103
- using System.Linq;
104
-
105
- using System.Xml.Linq;
106
-
107
-
108
-
109
- public override bool ValidateUser(string username, string password)
110
-
111
- {
112
-
113
- var xdoc = XDocument.Load(@"user.xml");
114
-
115
-
116
-
117
- var query = from user in xdoc.Descendants("user")
118
-
119
- where user.Attribute("user_name").Value == username &&
120
-
121
- user.Attribute("password").Value == password
122
-
123
- select user;
124
-
125
-
126
-
127
- return query.Count() == 1;
128
-
129
- }
130
-
131
-
132
-
133
- 参考URL:https://garafu.blogspot.jp/2014/07/linq-to-xml-xml_7.html
134
-
135
-
136
-
137
- 書込み例
138
-
139
- private void button11_Click(object sender, EventArgs e)
140
-
141
- {
142
-
143
- XElement root =
144
-
145
- new XElement("root",
146
-
147
- new XElement("item",
148
-
149
- new XElement("Code", "CD-010"),
150
-
151
- new XElement("Name", "Penguin Cookie"),
152
-
153
- new XElement("Price", "250")
154
-
155
- ),
156
-
157
- new XElement("item",
158
-
159
- new XElement("Code", "CD-023"),
160
-
161
- new XElement("Name", "Whale Candy"),
162
-
163
- new XElement("Price", "80")
164
-
165
- ),
166
-
167
- new XElement("item",
168
-
169
- new XElement("Code", "CD-046"),
170
-
171
- new XElement("Name", "Bear Potato"),
172
-
173
- new XElement("Price", "180")
174
-
175
- )
176
-
177
- );
178
-
179
-
180
-
181
- FileStream fs = new FileStream(textBox3.Text, FileMode.Create);
182
-
183
- root.Save(fs);
184
-
185
- fs.Close();
186
-
187
- fs.Dispose();
188
-
189
- }
190
-
191
-
192
-
193
- 参考URL:https://www.ipentec.com/document/document.aspx?page=csharp-linq-to-xml-xml-write

6

誤字

2017/10/13 07:44

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -94,6 +94,100 @@
94
94
 
95
95
 
96
96
 
97
- 上記をLINQ to XMLで実現予定
97
+ 上記をLINQ to XMLで実現予定です。
98
98
 
99
+
100
+
101
+ 読み込み例
102
+
103
+ using System.Linq;
104
+
105
+ using System.Xml.Linq;
106
+
107
+
108
+
109
+ public override bool ValidateUser(string username, string password)
110
+
111
+ {
112
+
113
+ var xdoc = XDocument.Load(@"user.xml");
114
+
115
+
116
+
117
+ var query = from user in xdoc.Descendants("user")
118
+
119
+ where user.Attribute("user_name").Value == username &&
120
+
121
+ user.Attribute("password").Value == password
122
+
123
+ select user;
124
+
125
+
126
+
127
+ return query.Count() == 1;
128
+
129
+ }
130
+
131
+
132
+
99
- 参考URL:http://knowledge.reontosanta.com/archives/677
133
+ 参考URL:https://garafu.blogspot.jp/2014/07/linq-to-xml-xml_7.html
134
+
135
+
136
+
137
+ 書込み例
138
+
139
+ private void button11_Click(object sender, EventArgs e)
140
+
141
+ {
142
+
143
+ XElement root =
144
+
145
+ new XElement("root",
146
+
147
+ new XElement("item",
148
+
149
+ new XElement("Code", "CD-010"),
150
+
151
+ new XElement("Name", "Penguin Cookie"),
152
+
153
+ new XElement("Price", "250")
154
+
155
+ ),
156
+
157
+ new XElement("item",
158
+
159
+ new XElement("Code", "CD-023"),
160
+
161
+ new XElement("Name", "Whale Candy"),
162
+
163
+ new XElement("Price", "80")
164
+
165
+ ),
166
+
167
+ new XElement("item",
168
+
169
+ new XElement("Code", "CD-046"),
170
+
171
+ new XElement("Name", "Bear Potato"),
172
+
173
+ new XElement("Price", "180")
174
+
175
+ )
176
+
177
+ );
178
+
179
+
180
+
181
+ FileStream fs = new FileStream(textBox3.Text, FileMode.Create);
182
+
183
+ root.Save(fs);
184
+
185
+ fs.Close();
186
+
187
+ fs.Dispose();
188
+
189
+ }
190
+
191
+
192
+
193
+ 参考URL:https://www.ipentec.com/document/document.aspx?page=csharp-linq-to-xml-xml-write

5

追記

2017/10/13 07:40

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -5,6 +5,16 @@
5
5
  下記の方法は案となります。誤りや別の良い方法などがありましたらご指摘ください。
6
6
 
7
7
  お願いします。
8
+
9
+
10
+
11
+ 【環境】
12
+
13
+  OS:Windows7(もしくはWIndows10)
14
+
15
+  言語:MS2015 C#
16
+
17
+ .NET:3.5以上
8
18
 
9
19
 
10
20
 

4

誤字

2017/10/13 07:05

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
1
  表題を目的としています。
2
2
 
3
+ 初心者なため効率の良い方法がよくわからないためご教示頂きたいです。
4
+
3
- 下記の方に誤りや別の良い方法などがありましたらご教示ください。
5
+ 下記の方法は案となます。誤りや別の良い方法などがありましたらご指摘ください。
4
6
 
5
7
  お願いします。
6
8
 

3

文字改善

2017/10/13 07:02

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -68,6 +68,10 @@
68
68
 
69
69
 
70
70
 
71
+ ※LINQ情報やXML情報はそれぞれフォルダ毎に管理予定です。
72
+
73
+
74
+
71
75
  **4.画面表示について**
72
76
 
73
77
  WindowsFormで行います。

2

誤字

2017/10/13 06:58

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
 
9
9
  **1.SqlServerのデータ移行**
10
+
11
+ 例:
10
12
 
11
13
  SELECT Id , ProductName, Price, Classification
12
14
 
@@ -27,6 +29,8 @@
27
29
  **2.データベース:XML型式ファイル**
28
30
 
29
31
  XMLデータベースのイメージは以下となります。
32
+
33
+ 例:
30
34
 
31
35
  Data1.xml
32
36
 

1

誤字

2017/10/13 06:56

投稿

taochan
taochan

スコア14

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  参考URL:https://ameblo.jp/nika-tv-2/entry-11537548124.html
22
22
 
23
- エクスポートをしようとしたがエラーになるため、上記の方法で行う予定です。
23
+ エクスポートをしようとしましたがエラーになるため、上記の方法で行う予定です。
24
24
 
25
25
 
26
26