You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,16 @@ I started with the [code](https://gist.github.com/flaub/1968486e1b3f2b9fddaf) fr
6
6
7
7
Currently the following is supported:
8
8
- Tables from classes (with table annotation)
9
-
- Columns from properties
10
-
- ForeignKey constraint (1-n relationships)
11
-
- Cascade on delete
12
-
- PrimaryKey constraint (An int PrimaryKey will automatically be incremented)
9
+
- Columns from properties (with key annotation)
10
+
- Auto increment (An int PrimaryKey will automatically be incremented)
11
+
- ForeignKey constraint (1-n relationships, support for 'Cascade on delete')
13
12
- Not Null constraint
14
13
15
14
I tried to write the code in a extensible way.
16
15
The logic is devided into two main parts. Builder and Statement.
17
-
The Builder-Part knows how to translate the EdmModel into statements where a statement class creates the SQLite-SQL-Code. The structure of the statements is influenced by the [SQLite Language Specification](https://www.sqlite.org/lang.html).
16
+
The Builder knows how to translate the EdmModel into statements where a statement class creates the SQLite-DDL-Code.
17
+
The structure of the statements is influenced by the [SQLite Language Specification](https://www.sqlite.org/lang.html).
18
+
You will find an extensive usage of the composite pattern.
18
19
19
20
## How to use
20
21
If you want to let the Entity Framework create the database, if it does not exist, just set `SqliteContextInitializer<>` as your `IDbInitializer`.
0 commit comments