Moved from EF and SQLite to LiteDB

This commit is contained in:
Robert committed 2019-11-20 19:19:13 +01:00
1 parent d4dd371a50
commit 66f7dc94c8
57 files changed
+379 -1279

No files matched your search

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using LiteDB;
namespace Artemis.Storage.Entities.Profile
{
public class FolderEntity
{
public Guid Id { get; set; }
public Guid ParentId { get; set; }
public int Order { get; set; }
public string Name { get; set; }
public List<ProfileConditionEntity> Conditions { get; set; }
[BsonRef("ProfileEntity")]
public ProfileEntity Profile { get; set; }
public Guid ProfileId { get; set; }
}
}
@@ -0,0 +1,9 @@
using System;
namespace Artemis.Storage.Entities.Profile
{
public class LayerElementEntity
{
public Guid Id { get; set; }
}
}
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using LiteDB;
namespace Artemis.Storage.Entities.Profile
{
public class LayerEntity
{
public Guid Id { get; set; }
public Guid ParentId { get; set; }
public Guid LayerTypeGuid { get; set; }
public int Order { get; set; }
public string Name { get; set; }
public List<LedEntity> Leds { get; set; }
public List<ProfileConditionEntity> Condition { get; set; }
public List<LayerElementEntity> Elements { get; set; }
[BsonRef("ProfileEntity")]
public ProfileEntity Profile { get; set; }
public Guid ProfileId { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
namespace Artemis.Storage.Entities.Profile
{
public class LedEntity
{
public Guid Id { get; set; }
public string LedName { get; set; }
public string LimitedToDevice { get; set; }
}
}
@@ -0,0 +1,9 @@
using System;
namespace Artemis.Storage.Entities.Profile
{
public class ProfileConditionEntity
{
public Guid Id { get; set; }
}
}
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Artemis.Storage.Entities.Profile
{
public class ProfileEntity
{
public Guid Id { get; set; }
public Guid PluginGuid { get; set; }
public string Name { get; set; }
public bool IsActive { get; set; }
public List<FolderEntity> Folders { get; set; }
public List<LayerEntity> Layers { get; set; }
}
}