有一个模型类Review。使用StoreModel和Menu模型。 在StoreModel.cs [Table ("Stores")]
public class StoreModel
{
[Key]
public int Id { get; set; }
public string StoreName { get; set; }
public stri
假设我有一个Cat域,如下所示。 class Cat{
String name
Integer age
}
现在我想添加一个新的功能,将标签分配给猫。 现在我看到两个选项来实现这一点。 选项1 属性添加到猫域 class Cat{
String name
Integer age
String tag
}
选项2 创建新表 class CatTa
我有我使用映射实体的接口对象域对象 public interface IDataEntity<in T1, out T2> where T1 : new() where T2 : new()
{
T2 Map(T1 obj);
}
要实现 public class MyEntityObj : IDataEntity<MyEntityObj, MyDomainObj>
{
为了定义一个包含整数的维度的字段,用于使用域模型库以下面的格式定义。 class Sample
include DomainModel
field :numbers, :type => Integer, :collection => true
end
以类似的方式,我怎样才能使用域模型定义一个二维数组?