Skip to content

Commit 2896aed

Browse files
author
Marc Sallin
committedApr 21, 2016
#42: Added sample code and updated readme.
1 parent b0d5d62 commit 2896aed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Currently the following is supported:
2222
- Not Null constraint
2323
- Auto increment (An int PrimaryKey will automatically be incremented)
2424
- 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`)
25-
- Unique constraint (Decorate columsn with the `UniqueAttribute` which is part of this library)
25+
- Unique constraint (Decorate columns with the `UniqueAttribute`, which is part of this library)
26+
- Collate constraint (Decorate columns with the `CollateAttribute`, which is part of this library)
2627

2728
I tried to write the code in a extensible way.
2829
The logic is divided into two main parts, Builder and Statement.

‎SQLite.CodeFirst.Console/Entity/Person.cs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public abstract class Person : IEntity
77
public int Id { get; set; }
88

99
[MaxLength(50)]
10+
[Collate(CollationFunction.NoCase)]
1011
public string FirstName { get; set; }
1112

1213
[MaxLength(50)]

0 commit comments

Comments
 (0)
Please sign in to comment.