首先如果您使用linq to sql的底層資料支援,那這篇文章比較适合您,這也是一個系列,本文主要說添加操作
WEB層
實作對象建立
<a href="http://images.cnblogs.com/cnblogs_com/lori/201112/201112170000089103.png"></a>
<a href="http://images.cnblogs.com/cnblogs_com/lori/201112/201112170000156765.png"></a>
Service層
實作邏輯處理與業務組合
<a href="http://images.cnblogs.com/cnblogs_com/lori/201112/201112170000478770.png"></a>
DAL層
實作操作最基礎功能的插入
<a href="http://images.cnblogs.com/cnblogs_com/lori/201112/201112170001052637.png"></a>
到這裡,一個完整的記錄插入流程就走完了,呵呵