Finalized client-side storage

This commit is contained in:
SpoinkyNL committed 2018-01-24 14:52:34 +01:00
1 parent 6eefa733b4
commit 7773d377a2
29 files changed
+961 -434

No files matched your search

@@ -0,0 +1,19 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Artemis.Storage.Entities
{
[Table("Folders")]
internal class FolderEntity
{
[Key]
public int Id { get; set; }
public int Order { get; set; }
public string Name { get; set; }
public virtual ICollection<FolderEntity> Folders { get; set; }
public virtual ICollection<LayerEntity> Layers { get; set; }
}
}
@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Artemis.Storage.Entities
{
[Table("Keypoints")]
internal class KeypointEntity
{
[Key]
public int Id { get; set; }
public int Time { get; set; }
public string Value { get; set; }
}
}
-18
View File
@@ -1,18 +0,0 @@
using System.Collections.Generic;
namespace Artemis.Storage.Entities
{
internal class Layer
{
public int ProfileId { get; set; }
public string Name { get; set; }
public LayerType LayerType { get; set; }
public virtual Profile Profile { get; set; }
public virtual ICollection<Layer> Layers { get; set; }
}
internal enum LayerType
{
}
}
@@ -0,0 +1,21 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Artemis.Storage.Entities
{
[Table("Layers")]
internal class LayerEntity
{
[Key]
public int Id { get; set; }
public string Type { get; set; }
public virtual ICollection<LedEntity> Leds { get; set; }
public virtual ICollection<LayerSettingEntity> Settings { get; set; }
public int Order { get; set; }
public string Name { get; set; }
}
}
@@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Artemis.Storage.Entities
{
[Table("LayerSettings")]
internal class LayerSettingEntity
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
public string Value { get; set; }
public ICollection<KeypointEntity> Keypoints { get; set; }
}
}
+18
View File
@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Artemis.Storage.Entities
{
[Table("Leds")]
internal class LedEntity
{
[Key]
public int Id { get; set; }
public string LedName { get; set; }
public string LimitedToDevice { get; set; }
public int LayerId { get; set; }
public virtual LayerEntity Layer { get; set; }
}
}
-14
View File
@@ -1,14 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Artemis.Storage.Entities
{
internal class Profile
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<Layer> Layers { get; set; }
}
}
@@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
namespace Artemis.Storage.Entities
{
internal class ProfileEntity
{
[Key]
public int Id { get; set; }
public string Name { get; set; }
public string Module { get; set; }
public int RootFolderId { get; set; }
public virtual FolderEntity RootFolder { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace Artemis.Storage.Entities
{
internal class Setting
internal class SettingEntity
{
[Key]
public string Name { get; set; }