using System; using System.Collections.Generic; using System.Text; namespace Apewer.Source { /// 数据库记录通用字段模型。 /// 带有 Independent 特性的模型不包含此接口声明的属性。 public interface IRecord { /// 记录唯一键,一般使用 GUID 的字符串形式,字段长度不应超过 255 个字符。 /// 带有 Independent 特性的模型不包含此属性。 string Key { get; set; } /// 记录的标记,区分记录的状态。 /// 带有 Independent 特性的模型不包含此属性。 long Flag { get; set; } /// 重置 Key 属性的值。 void ResetKey(); } }