• R/O
  • SSH
  • HTTPS

ea2ddl: コミット


コミットメタ情報

リビジョン133 (tree)
日時2011-09-15 10:03:39
作者taktos9

ログメッセージ

DatabaseModelを実装した

変更サマリ

差分

--- trunk/ea2ddl.net/ea2ddl.net/Model/DatabaseModel.cs (nonexistent)
+++ trunk/ea2ddl.net/ea2ddl.net/Model/DatabaseModel.cs (revision 133)
@@ -0,0 +1,30 @@
1+/*
2+ * Created by SharpDevelop.
3+ * User: takiguchi
4+ * Date: 2011/09/15
5+ * Time: 9:44
6+ *
7+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
8+ */
9+using System;
10+using System.Collections.Generic;
11+
12+namespace ea2ddl.net.Model
13+{
14+ /// <summary>
15+ /// Description of DatabaseModel.
16+ /// </summary>
17+ public class DatabaseModel
18+ {
19+ public IList<TableModel> Tables { get; private set; }
20+
21+ public DatabaseModel()
22+ {
23+ Tables = new List<TableModel>();
24+ }
25+
26+ public void AddTable(TableModel table) {
27+ Tables.Add(table);
28+ }
29+ }
30+}
--- trunk/ea2ddl.net/ea2ddl.net/Model/TableModel.cs (nonexistent)
+++ trunk/ea2ddl.net/ea2ddl.net/Model/TableModel.cs (revision 133)
@@ -0,0 +1,22 @@
1+/*
2+ * Created by SharpDevelop.
3+ * User: takiguchi
4+ * Date: 2011/09/15
5+ * Time: 9:45
6+ *
7+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
8+ */
9+using System;
10+
11+namespace ea2ddl.net.Model
12+{
13+ /// <summary>
14+ /// Description of TableModel.
15+ /// </summary>
16+ public class TableModel
17+ {
18+ public TableModel()
19+ {
20+ }
21+ }
22+}
--- trunk/ea2ddl.net/ea2ddl.net.Test/Model/DataModelTest.cs (nonexistent)
+++ trunk/ea2ddl.net/ea2ddl.net.Test/Model/DataModelTest.cs (revision 133)
@@ -0,0 +1,35 @@
1+/*
2+ * Created by SharpDevelop.
3+ * User: takiguchi
4+ * Date: 2011/09/15
5+ * Time: 10:00
6+ *
7+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
8+ */
9+using System;
10+using ea2ddl.net.Model;
11+using NUnit.Framework;
12+
13+namespace ea2ddl.net.Test.Model
14+{
15+ /// <summary>
16+ /// Description of DataModelTest.
17+ /// </summary>
18+ [TestFixture]
19+ public class DataModelTest
20+ {
21+ public DataModelTest()
22+ {
23+ }
24+
25+ [Test]
26+ public void TestAddTable() {
27+ DatabaseModel model = new DatabaseModel();
28+ Assert.AreEqual(0, model.Tables.Count);
29+
30+ TableModel table = new TableModel();
31+ model.AddTable(table);
32+ Assert.AreEqual(1, model.Tables.Count);
33+ }
34+ }
35+}
旧リポジトリブラウザで表示