Dapper基礎知識三
阿新 • • 發佈:2018-11-30
repo 依賴註入 ref 進階 快速開發 .html () href strong
在下剛畢業工作,之前實習有用到Dapper?這幾天新項目想用上Dapper,在下比較菜鳥,這塊只是個人對Dapper的一種總結。
Dapper,當項目在開發的時候,在沒有必要使用依賴註入的時候,如何做到對項目的快速開發這裏對Dapper做一個小的進階。
結合上一篇的博客,就可以使用了。
public class Demo { public string name { get; set; } public string DapperTest { get; set; } }
public class DemoManger: IDapperRepository<Demo> {public void Test() { Demo demo = new Demo(); { demo.name = "Test"; demo.DapperTest = "true"; } this.Add(demo); } }
Dapper基礎知識一
Dapper基礎知識二
Dapper基礎知識三