sharp-wawi/models/Entity.cs

35 lines
795 B
C#
Raw Normal View History

2018-07-26 16:55:41 +02:00
using System;
using System.Collections.Generic;
2018-08-01 23:33:10 +02:00
using mapper.attributes;
2018-09-12 21:29:58 +02:00
using appsrv.templates.editors;
2018-07-26 16:55:41 +02:00
namespace sharpwawi.models
{
2018-08-01 23:33:10 +02:00
[MappingConstraint(FieldMappingConstraint = MappingConstraints.ANNOTATEDONLY,PropertyMappingConstraint = MappingConstraints.ALL)]
2018-07-26 16:55:41 +02:00
public class Entity
{
2018-08-01 23:33:10 +02:00
[PrimaryKey]
2018-09-12 21:29:58 +02:00
public String Key;
2018-07-26 16:55:41 +02:00
2018-09-12 21:29:58 +02:00
public String Name;
public String Description;
2018-07-26 16:55:41 +02:00
public IDictionary<string, string> userFields = new Dictionary<string, string>();
public Entity()
{
Key = null;
Name = "unnamed entity";
Description = "";
}
2018-07-30 17:55:15 +02:00
public Entity(String key,String name)
{
Key = key;
Name = name;
Description = "";
}
2018-07-30 09:23:18 +02:00
2018-07-26 16:55:41 +02:00
}
}