diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-08-06 10:41:16 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-08-06 10:41:16 +0300 |
| commit | e86fe2e8cf34343cf3ebbf4640b2be5e85899615 (patch) | |
| tree | dee59a2c43b69b6abe20be24059d42ecabcdfffc /Software/Visual_Studio_v2/Tango.DAL/Entity.cs | |
| parent | c1b00ec58a47e504e0247c21c96b55a89e7a95eb (diff) | |
| download | Tango-e86fe2e8cf34343cf3ebbf4640b2be5e85899615.tar.gz Tango-e86fe2e8cf34343cf3ebbf4640b2be5e85899615.zip | |
v2 Basic structure.
Diffstat (limited to 'Software/Visual_Studio_v2/Tango.DAL/Entity.cs')
| -rw-r--r-- | Software/Visual_Studio_v2/Tango.DAL/Entity.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Software/Visual_Studio_v2/Tango.DAL/Entity.cs b/Software/Visual_Studio_v2/Tango.DAL/Entity.cs new file mode 100644 index 000000000..d299dcc78 --- /dev/null +++ b/Software/Visual_Studio_v2/Tango.DAL/Entity.cs @@ -0,0 +1,15 @@ +using MongoDB.Bson; +using MongoDB.Bson.Serialization.Attributes; +using System; +using System.Collections.Generic; +using System.Text; + +namespace Tango.DAL +{ + public abstract class Entity + { + [BsonId] + [BsonRepresentation(BsonType.ObjectId)] + public string ID { get; set; } + } +} |
