ent.Msg

dt=(DataTable)this.ent.MsgValue;

if(dt==null || dt.Rows.Count==0)

 

1定義table

2定義各層:(1)dao,service,

                 (2)entity  : ex  

[serializable]

public partial class tableEntity : BaseEntity,ITableInfo

{

First:

     Parameter List

          private  datatype fieldname= initailize;

                        datatype: string , int32,decimal

          private string tableName="xxx";

          private string tableSchema=string.Empty;


                        


Second:

      Property List

          [TableColumn("fieldname(CAP))")]

          [UpdateReadOnly] [QueryReadOnly][NotTableMapping]

          public string fieldname

         {

            get

                 {return fieldname}

            set

                {fieldname=value;}

 

         }

           


Third:

       ITableInfo Members

       public string TableName

         {

            get{return tablename;}

             set {tablename=value;}  


        } 

       public string TableSchema

      {

          get{retutn tableschema}

          set {tableschema=value;}

     }


 

}

[NotTableMapping]

 [QueryReadOnly] 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章