为了方便编程,我有不同的文档来实现一些常用接口:
public interface IBase
{
string Name {get; set;}
}
public class Document1 : IBase
{
[BsonRequired]
public string Name {get; set;}
}
public class Document2 : IBase
{
[BsonRequired]
public string Name {get; set;}
}
在界面上移动属性是否安全?
public interface IBase
{
[BsonRequired]
string Name {get; set;}
}
public class Document1 : IBase
{
public string Name {get; set;}
}
public class Document2 : IBase
{
public string Name {get; set;}
}