Skip to content

Commit 3059ff6

Browse files
author
Marc Sallin
committed
Update README.md
1 parent 69b677e commit 3059ff6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ I started with the [code](https://gist.github.com/flaub/1968486e1b3f2b9fddaf) fr
1010

1111
Currently the following is supported:
1212
- Tables from classes (supported annotations: `Table`)
13-
- Columns from properties (supported annotations: `Column`, `Key`, `MaxLength`, `Required`, `NotMapped`, `DatabaseGenerated`)
13+
- Columns from properties (supported annotations: `Column`, `Key`, `MaxLength`, `Required`, `NotMapped`, `DatabaseGenerated`, `Index`)
1414
- PrimaryKey constraint (`Key` annotation, key composites are supported)
15-
- ForeignKey constraint (1-n relationships, support for 'Cascade on delete')
15+
- ForeignKey constraint (1-n relationships, support for 'Cascade on delete)'
1616
- Not Null constraint
1717
- Auto increment (An int PrimaryKey will automatically be incremented)
18+
- Index (Decorate columns with the `Index` attribute. Indices are automatically created for foreign keys by default. To prevent this you can remove the convetion `ForeignKeyIndexConvention`)
1819

1920
I tried to write the code in a extensible way.
2021
The logic is divided into two main parts. Builder and Statement.
@@ -58,5 +59,5 @@ public class MyDbContextContextInitializer : SqliteDropCreateDatabaseAlways<MyDb
5859
```
5960

6061
## Hints
61-
If you try to reinstall the NuGet-Packages (e.g. if you want to downgrade to .NET 4.0) the app.config will be overwritten and you may gettubg an exception when you try to run the console project.
62+
If you try to reinstall the NuGet-Packages (e.g. if you want to downgrade to .NET 4.0) the app.config will be overwritten and you may getting an exception when you try to run the console project.
6263
In this case please check the following issue: https://github.com/msallin/SQLiteCodeFirst/issues/13.

0 commit comments

Comments
 (0)