35 lines
795 B
C#
35 lines
795 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using mapper.attributes;
|
|
using appsrv.templates.editors;
|
|
namespace sharpwawi.models
|
|
{
|
|
[MappingConstraint(FieldMappingConstraint = MappingConstraints.ANNOTATEDONLY,PropertyMappingConstraint = MappingConstraints.ALL)]
|
|
public class Entity
|
|
{
|
|
[PrimaryKey]
|
|
public String Key;
|
|
|
|
public String Name;
|
|
|
|
public String Description;
|
|
|
|
public IDictionary<string, string> userFields = new Dictionary<string, string>();
|
|
|
|
public Entity()
|
|
{
|
|
Key = null;
|
|
Name = "unnamed entity";
|
|
Description = "";
|
|
}
|
|
public Entity(String key,String name)
|
|
{
|
|
Key = key;
|
|
Name = name;
|
|
Description = "";
|
|
}
|
|
|
|
|
|
}
|
|
}
|