Beispiel #1
0
 /// <summary>
 /// 检查字段是否存在 不存在直接抛出异常
 /// </summary>
 /// <param name="Entity"></param>
 /// <param name="FieldName"></param>
 protected virtual void CheckField(IEntityBase Entity, string FieldName)
 {
     if (Entity.GetField(FieldName) == null)
     {
         throw new Exception("驱动表格没找到实体的指定字段:" + this.entity.ToString() +   " " + FieldName);
     }
 }