/// <summary> /// 实体数据点 /// </summary> /// <param name="entity">由ColumnTypeAttribute标记属性的实体</param> /// <exception cref="ArgumentException"></exception> /// <exception cref="ProtocolException"></exception> public Point(TEntity entity) { this.entity = entity; this.desciptor = EntityDesciptor <TEntity> .Instance; }
/// <summary> /// 实体数据点 /// </summary> /// <param name="entity">由ColumnTypeAttribute标记属性的实体</param> /// <exception cref="ArgumentException"></exception> /// <exception cref="ProtocolException"></exception> public Point(object entity) { this.entity = entity; this.desciptor = EntityDesciptor.Get(entity.GetType()); }