{"action":"opened","issue":{"url":"https://api.github.com/repos/shuxinqin/Chloe/issues/26","repository_url":"https://api.github.com/repos/shuxinqin/Chloe","labels_url":"https://api.github.com/repos/shuxinqin/Chloe/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/shuxinqin/Chloe/issues/26/comments","events_url":"https://api.github.com/repos/shuxinqin/Chloe/issues/26/events","html_url":"https://github.com/shuxinqin/Chloe/issues/26","id":265627120,"number":26,"title":"小小的建议","user":{"login":"JHeLiu","id":15246138,"avatar_url":"https://avatars0.githubusercontent.com/u/15246138?v=4","gravatar_id":"","url":"https://api.github.com/users/JHeLiu","html_url":"https://github.com/JHeLiu","followers_url":"https://api.github.com/users/JHeLiu/followers","following_url":"https://api.github.com/users/JHeLiu/following{/other_user}","gists_url":"https://api.github.com/users/JHeLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/JHeLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JHeLiu/subscriptions","organizations_url":"https://api.github.com/users/JHeLiu/orgs","repos_url":"https://api.github.com/users/JHeLiu/repos","events_url":"https://api.github.com/users/JHeLiu/events{/privacy}","received_events_url":"https://api.github.com/users/JHeLiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-16T02:05:55Z","updated_at":"2017-10-16T02:05:55Z","closed_at":null,"author_association":"NONE","body":"1、API设计的非常优雅。很喜欢，\r\n2、在调用储存过程中，希望可以借鉴下Dapper的模式、多提供几个构造函数。比如大多数的时候可能都喜欢这样使用。\r\n` \r\nvar dbParm = new DbParam();\r\ndbParm.AddDynamic(new {Name=\"\",Sex=0}); //都是一样的参数，可能会选择匿名类 或者实体类\r\ndbParm.Add(\"OutMsg\",\"\",DbType.String,ParamDirection.Output);\r\ndbParm.Add(\"OutMsg1\",\"\",DbType.String,ParamDirection.Output);\r\n\r\n//执行方法\r\nontext.Session.ExecuteNonQuery(\"PROC_NAME\",dbParm);\r\n\r\n//获取的想要的输出参数\r\ndbParm.Get<string>(\"OutMsg\");\r\ndbParm.Get<string>(\"OutMsg1\");\r\n `\r\n\r\n还有我的储存过程 可能会返回数据集，或许我并不知道它的多少。可能是DataTable 也可能是DataSet类型。或者我会返回输出参数+数据集一起都出现。\r\n\r\n希望层主加油，非常感谢你的分享库\r\n\r\n\r\n"}}
{"actor":{"display_login":"JHeLiu"}}