using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("X_Log_Dispatch")] public class X_Log_Dispatch : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _ctid=""; /// /// /// [Property] public string ctid { get{ return _ctid; } set{ _ctid=value; } } private string _did=""; /// /// /// [Property] public string did { get{ return _did; } set{ _did=value; } } /// /// /// [Property] public DateTime? dtime { get; set; } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from X_Log_Dispatch where id=" + id); ExecuteNonQuery(sql.ToString()); } } }