db.code-snippets 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796
  1. {"查询广告位列表": {
  2. "prefix": "ym-db-Advertisment-Find",
  3. "body": [
  4. "List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5. "foreach (Advertisment $3 in $1)",
  6. "{",
  7. "}"
  8. ]
  9. },
  10. "查询广告位列表,并取值": {
  11. "prefix": "ym-db-Advertisment-FindWithData",
  12. "body": [
  13. "List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14. "foreach (Advertisment $3 in $1)",
  15. "{",
  16. " string Title = $3.Title; //标题",
  17. " string ColId = $3.ColId; //分类",
  18. " string PicPath = $3.PicPath; //图片",
  19. " string Contents = $3.Contents; //内容",
  20. " string Url = $3.Url; //链接地址",
  21. "}"
  22. ]
  23. },
  24. "查询广告位": {
  25. "prefix": "ym-db-Advertisment-Exist",
  26. "body": [
  27. "bool $1 = db.Advertisment.Any(m => m.Id == $2);",
  28. ]
  29. },
  30. "查询某个广告位,并取值": {
  31. "prefix": "ym-db-Advertisment-FindByPrimaryKey",
  32. "body": [
  33. "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
  34. "if ($1 != null)",
  35. "{",
  36. " string Title = $1.Title; //标题",
  37. " string ColId = $1.ColId; //分类",
  38. " string PicPath = $1.PicPath; //图片",
  39. " string Contents = $1.Contents; //内容",
  40. " string Url = $1.Url; //链接地址",
  41. "}"
  42. ]
  43. },
  44. "查询某个广告位,并赋值": {
  45. "prefix": "ym-db-Advertisment-Update",
  46. "body": [
  47. "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
  48. "if ($1 != null)",
  49. "{",
  50. " $1.Title = $2; //标题",
  51. " $1.ColId = $3; //分类",
  52. " $1.PicPath = $4; //图片",
  53. " $1.Contents = $5; //内容",
  54. " $1.Url = $6; //链接地址",
  55. "}"
  56. ]
  57. },
  58. "获取广告位数量": {
  59. "prefix": "ym-db-Advertisment-FindAndCount",
  60. "body": [
  61. "int $1 = db.Advertisment.Count(m => $2);",
  62. ]
  63. },
  64. "添加广告位": {
  65. "prefix": "ym-db-Advertisment-Create",
  66. "body": [
  67. "db.Advertisment.Add(new Advertisment()",
  68. "{",
  69. " CreateDate = DateTime.Now,",
  70. " UpdateDate = DateTime.Now,",
  71. " Title = $1, //标题",
  72. " ColId = $2, //分类",
  73. " PicPath = $3, //图片",
  74. " Contents = $4, //内容",
  75. " Url = $5, //链接地址",
  76. "});"
  77. ]
  78. },"删除某个广告位": {
  79. "prefix": "ym-db-Advertisment-Delete",
  80. "body": [
  81. "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
  82. "if ($1 != null)",
  83. "{",
  84. " db.Advertisment.Remove($1);",
  85. "}"
  86. ]
  87. },
  88. "查询分类设置列表": {
  89. "prefix": "ym-db-Col-Find",
  90. "body": [
  91. "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  92. "foreach (Col $3 in $1)",
  93. "{",
  94. "}"
  95. ]
  96. },
  97. "查询分类设置列表,并取值": {
  98. "prefix": "ym-db-Col-FindWithData",
  99. "body": [
  100. "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  101. "foreach (Col $3 in $1)",
  102. "{",
  103. " string ColId = $3.ColId; //编号",
  104. " string ColName = $3.ColName; //名称",
  105. " string ColPicPath = $3.ColPicPath; //图标",
  106. " string ColDetail = $3.ColDetail; //简介",
  107. " ulong Recommend = $3.Recommend; //推荐",
  108. " string ColEnName = $3.ColEnName; //英文名",
  109. " string Contents = $3.Contents; //详细内容",
  110. " string Url = $3.Url; //第三方链接",
  111. "}"
  112. ]
  113. },
  114. "查询分类设置": {
  115. "prefix": "ym-db-Col-Exist",
  116. "body": [
  117. "bool $1 = db.Col.Any(m => m.Id == $2);",
  118. ]
  119. },
  120. "查询某个分类设置,并取值": {
  121. "prefix": "ym-db-Col-FindByPrimaryKey",
  122. "body": [
  123. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  124. "if ($1 != null)",
  125. "{",
  126. " string ColId = $1.ColId; //编号",
  127. " string ColName = $1.ColName; //名称",
  128. " string ColPicPath = $1.ColPicPath; //图标",
  129. " string ColDetail = $1.ColDetail; //简介",
  130. " ulong Recommend = $1.Recommend; //推荐",
  131. " string ColEnName = $1.ColEnName; //英文名",
  132. " string Contents = $1.Contents; //详细内容",
  133. " string Url = $1.Url; //第三方链接",
  134. "}"
  135. ]
  136. },
  137. "查询某个分类设置,并赋值": {
  138. "prefix": "ym-db-Col-Update",
  139. "body": [
  140. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  141. "if ($1 != null)",
  142. "{",
  143. " $1.ColId = $2; //编号",
  144. " $1.ColName = $3; //名称",
  145. " $1.ColPicPath = $4; //图标",
  146. " $1.ColDetail = $5; //简介",
  147. " $1.Recommend = $6; //推荐",
  148. " $1.ColEnName = $7; //英文名",
  149. " $1.Contents = $8; //详细内容",
  150. " $1.Url = $9; //第三方链接",
  151. "}"
  152. ]
  153. },
  154. "获取分类设置数量": {
  155. "prefix": "ym-db-Col-FindAndCount",
  156. "body": [
  157. "int $1 = db.Col.Count(m => $2);",
  158. ]
  159. },
  160. "添加分类设置": {
  161. "prefix": "ym-db-Col-Create",
  162. "body": [
  163. "db.Col.Add(new Col()",
  164. "{",
  165. " CreateDate = DateTime.Now,",
  166. " UpdateDate = DateTime.Now,",
  167. " ColId = $1, //编号",
  168. " ColName = $2, //名称",
  169. " ColPicPath = $3, //图标",
  170. " ColDetail = $4, //简介",
  171. " Recommend = $5, //推荐",
  172. " ColEnName = $6, //英文名",
  173. " Contents = $7, //详细内容",
  174. " Url = $8, //第三方链接",
  175. "});"
  176. ]
  177. },"删除某个分类设置": {
  178. "prefix": "ym-db-Col-Delete",
  179. "body": [
  180. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  181. "if ($1 != null)",
  182. "{",
  183. " db.Col.Remove($1);",
  184. "}"
  185. ]
  186. },
  187. "查询消息黑名单列表": {
  188. "prefix": "ym-db-MsgBlackList-Find",
  189. "body": [
  190. "List<MsgBlackList> $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  191. "foreach (MsgBlackList $3 in $1)",
  192. "{",
  193. "}"
  194. ]
  195. },
  196. "查询消息黑名单列表,并取值": {
  197. "prefix": "ym-db-MsgBlackList-FindWithData",
  198. "body": [
  199. "List<MsgBlackList> $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  200. "foreach (MsgBlackList $3 in $1)",
  201. "{",
  202. " string ColId = $3.ColId; //分类",
  203. " int TemplateId = $3.TemplateId; //模板",
  204. " string Mobile = $3.Mobile; //手机号",
  205. " string Ip = $3.Ip; //IP地址",
  206. " string Reason = $3.Reason; //加入黑名单原因",
  207. " string Remark = $3.Remark; //注释",
  208. " string Extend = $3.Extend; //扩展字段",
  209. "}"
  210. ]
  211. },
  212. "查询消息黑名单": {
  213. "prefix": "ym-db-MsgBlackList-Exist",
  214. "body": [
  215. "bool $1 = db.MsgBlackList.Any(m => m.Id == $2);",
  216. ]
  217. },
  218. "查询某个消息黑名单,并取值": {
  219. "prefix": "ym-db-MsgBlackList-FindByPrimaryKey",
  220. "body": [
  221. "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
  222. "if ($1 != null)",
  223. "{",
  224. " string ColId = $1.ColId; //分类",
  225. " int TemplateId = $1.TemplateId; //模板",
  226. " string Mobile = $1.Mobile; //手机号",
  227. " string Ip = $1.Ip; //IP地址",
  228. " string Reason = $1.Reason; //加入黑名单原因",
  229. " string Remark = $1.Remark; //注释",
  230. " string Extend = $1.Extend; //扩展字段",
  231. "}"
  232. ]
  233. },
  234. "查询某个消息黑名单,并赋值": {
  235. "prefix": "ym-db-MsgBlackList-Update",
  236. "body": [
  237. "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
  238. "if ($1 != null)",
  239. "{",
  240. " $1.ColId = $2; //分类",
  241. " $1.TemplateId = $3; //模板",
  242. " $1.Mobile = $4; //手机号",
  243. " $1.Ip = $5; //IP地址",
  244. " $1.Reason = $6; //加入黑名单原因",
  245. " $1.Remark = $7; //注释",
  246. " $1.Extend = $8; //扩展字段",
  247. "}"
  248. ]
  249. },
  250. "获取消息黑名单数量": {
  251. "prefix": "ym-db-MsgBlackList-FindAndCount",
  252. "body": [
  253. "int $1 = db.MsgBlackList.Count(m => $2);",
  254. ]
  255. },
  256. "添加消息黑名单": {
  257. "prefix": "ym-db-MsgBlackList-Create",
  258. "body": [
  259. "db.MsgBlackList.Add(new MsgBlackList()",
  260. "{",
  261. " CreateDate = DateTime.Now,",
  262. " UpdateDate = DateTime.Now,",
  263. " ColId = $1, //分类",
  264. " TemplateId = $2, //模板",
  265. " Mobile = $3, //手机号",
  266. " Ip = $4, //IP地址",
  267. " Reason = $5, //加入黑名单原因",
  268. " Remark = $6, //注释",
  269. " Extend = $7, //扩展字段",
  270. "});"
  271. ]
  272. },"删除某个消息黑名单": {
  273. "prefix": "ym-db-MsgBlackList-Delete",
  274. "body": [
  275. "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
  276. "if ($1 != null)",
  277. "{",
  278. " db.MsgBlackList.Remove($1);",
  279. "}"
  280. ]
  281. },
  282. "查询个人消息列表": {
  283. "prefix": "ym-db-MsgPersonal-Find",
  284. "body": [
  285. "List<MsgPersonal> $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  286. "foreach (MsgPersonal $3 in $1)",
  287. "{",
  288. "}"
  289. ]
  290. },
  291. "查询个人消息列表,并取值": {
  292. "prefix": "ym-db-MsgPersonal-FindWithData",
  293. "body": [
  294. "List<MsgPersonal> $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  295. "foreach (MsgPersonal $3 in $1)",
  296. "{",
  297. " int TemplateId = $3.TemplateId; //模板",
  298. " int UserId = $3.UserId; //创客",
  299. " int MsgType = $3.MsgType; //消息类型",
  300. " string BgPic = $3.BgPic; //背景图片",
  301. " string Title = $3.Title; //标题",
  302. " string Content = $3.Content; //内容",
  303. " string Url = $3.Url; //跳转Url",
  304. " string Summary = $3.Summary; //简介",
  305. " int PushFlag = $3.PushFlag; //推送标记",
  306. " ulong ReadFlag = $3.ReadFlag; //已读标记",
  307. " string PushParam = $3.PushParam; //推送参数",
  308. " string ExtendColumn = $3.ExtendColumn; //扩展字段",
  309. " string Remark = $3.Remark; //备注",
  310. "}"
  311. ]
  312. },
  313. "查询个人消息": {
  314. "prefix": "ym-db-MsgPersonal-Exist",
  315. "body": [
  316. "bool $1 = db.MsgPersonal.Any(m => m.Id == $2);",
  317. ]
  318. },
  319. "查询某个个人消息,并取值": {
  320. "prefix": "ym-db-MsgPersonal-FindByPrimaryKey",
  321. "body": [
  322. "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
  323. "if ($1 != null)",
  324. "{",
  325. " int TemplateId = $1.TemplateId; //模板",
  326. " int UserId = $1.UserId; //创客",
  327. " int MsgType = $1.MsgType; //消息类型",
  328. " string BgPic = $1.BgPic; //背景图片",
  329. " string Title = $1.Title; //标题",
  330. " string Content = $1.Content; //内容",
  331. " string Url = $1.Url; //跳转Url",
  332. " string Summary = $1.Summary; //简介",
  333. " int PushFlag = $1.PushFlag; //推送标记",
  334. " ulong ReadFlag = $1.ReadFlag; //已读标记",
  335. " string PushParam = $1.PushParam; //推送参数",
  336. " string ExtendColumn = $1.ExtendColumn; //扩展字段",
  337. " string Remark = $1.Remark; //备注",
  338. "}"
  339. ]
  340. },
  341. "查询某个个人消息,并赋值": {
  342. "prefix": "ym-db-MsgPersonal-Update",
  343. "body": [
  344. "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
  345. "if ($1 != null)",
  346. "{",
  347. " $1.TemplateId = $2; //模板",
  348. " $1.UserId = $3; //创客",
  349. " $1.MsgType = $4; //消息类型",
  350. " $1.BgPic = $5; //背景图片",
  351. " $1.Title = $6; //标题",
  352. " $1.Content = $7; //内容",
  353. " $1.Url = $8; //跳转Url",
  354. " $1.Summary = $9; //简介",
  355. " $1.PushFlag = $10; //推送标记",
  356. " $1.ReadFlag = $11; //已读标记",
  357. " $1.PushParam = $12; //推送参数",
  358. " $1.ExtendColumn = $13; //扩展字段",
  359. " $1.Remark = $14; //备注",
  360. "}"
  361. ]
  362. },
  363. "获取个人消息数量": {
  364. "prefix": "ym-db-MsgPersonal-FindAndCount",
  365. "body": [
  366. "int $1 = db.MsgPersonal.Count(m => $2);",
  367. ]
  368. },
  369. "添加个人消息": {
  370. "prefix": "ym-db-MsgPersonal-Create",
  371. "body": [
  372. "db.MsgPersonal.Add(new MsgPersonal()",
  373. "{",
  374. " CreateDate = DateTime.Now,",
  375. " UpdateDate = DateTime.Now,",
  376. " TemplateId = $1, //模板",
  377. " UserId = $2, //创客",
  378. " MsgType = $3, //消息类型",
  379. " BgPic = $4, //背景图片",
  380. " Title = $5, //标题",
  381. " Content = $6, //内容",
  382. " Url = $7, //跳转Url",
  383. " Summary = $8, //简介",
  384. " PushFlag = $9, //推送标记",
  385. " ReadFlag = $10, //已读标记",
  386. " PushParam = $11, //推送参数",
  387. " ExtendColumn = $12, //扩展字段",
  388. " Remark = $13, //备注",
  389. "});"
  390. ]
  391. },"删除某个个人消息": {
  392. "prefix": "ym-db-MsgPersonal-Delete",
  393. "body": [
  394. "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
  395. "if ($1 != null)",
  396. "{",
  397. " db.MsgPersonal.Remove($1);",
  398. "}"
  399. ]
  400. },
  401. "查询公告消息列表": {
  402. "prefix": "ym-db-MsgPlacard-Find",
  403. "body": [
  404. "List<MsgPlacard> $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  405. "foreach (MsgPlacard $3 in $1)",
  406. "{",
  407. "}"
  408. ]
  409. },
  410. "查询公告消息列表,并取值": {
  411. "prefix": "ym-db-MsgPlacard-FindWithData",
  412. "body": [
  413. "List<MsgPlacard> $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  414. "foreach (MsgPlacard $3 in $1)",
  415. "{",
  416. " int MsgType = $3.MsgType; //消息类型",
  417. " string Title = $3.Title; //标题",
  418. " string Summary = $3.Summary; //简介",
  419. " string Content = $3.Content; //内容",
  420. " ulong IsTop = $3.IsTop; //置顶",
  421. " int ShowType = $3.ShowType; //展示类型",
  422. " DateTime EffectStartDate = $3.EffectStartDate; //有效开始时间",
  423. " DateTime EffectEndDate = $3.EffectEndDate; //有效结束时间",
  424. " string BgPic = $3.BgPic; //背景图片",
  425. " int PushType = $3.PushType; //推送类型",
  426. " int PushFlag = $3.PushFlag; //推送标记",
  427. " string PushParam = $3.PushParam; //推送参数",
  428. " DateTime PushTime = $3.PushTime; //推送时间",
  429. " string ExtendColumn = $3.ExtendColumn; //扩展字段",
  430. " string Remark = $3.Remark; //备注",
  431. " string Url = $3.Url; //跳转Url",
  432. "}"
  433. ]
  434. },
  435. "查询公告消息": {
  436. "prefix": "ym-db-MsgPlacard-Exist",
  437. "body": [
  438. "bool $1 = db.MsgPlacard.Any(m => m.Id == $2);",
  439. ]
  440. },
  441. "查询某个公告消息,并取值": {
  442. "prefix": "ym-db-MsgPlacard-FindByPrimaryKey",
  443. "body": [
  444. "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
  445. "if ($1 != null)",
  446. "{",
  447. " int MsgType = $1.MsgType; //消息类型",
  448. " string Title = $1.Title; //标题",
  449. " string Summary = $1.Summary; //简介",
  450. " string Content = $1.Content; //内容",
  451. " ulong IsTop = $1.IsTop; //置顶",
  452. " int ShowType = $1.ShowType; //展示类型",
  453. " DateTime EffectStartDate = $1.EffectStartDate; //有效开始时间",
  454. " DateTime EffectEndDate = $1.EffectEndDate; //有效结束时间",
  455. " string BgPic = $1.BgPic; //背景图片",
  456. " int PushType = $1.PushType; //推送类型",
  457. " int PushFlag = $1.PushFlag; //推送标记",
  458. " string PushParam = $1.PushParam; //推送参数",
  459. " DateTime PushTime = $1.PushTime; //推送时间",
  460. " string ExtendColumn = $1.ExtendColumn; //扩展字段",
  461. " string Remark = $1.Remark; //备注",
  462. " string Url = $1.Url; //跳转Url",
  463. "}"
  464. ]
  465. },
  466. "查询某个公告消息,并赋值": {
  467. "prefix": "ym-db-MsgPlacard-Update",
  468. "body": [
  469. "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
  470. "if ($1 != null)",
  471. "{",
  472. " $1.MsgType = $2; //消息类型",
  473. " $1.Title = $3; //标题",
  474. " $1.Summary = $4; //简介",
  475. " $1.Content = $5; //内容",
  476. " $1.IsTop = $6; //置顶",
  477. " $1.ShowType = $7; //展示类型",
  478. " $1.EffectStartDate = $8; //有效开始时间",
  479. " $1.EffectEndDate = $9; //有效结束时间",
  480. " $1.BgPic = $10; //背景图片",
  481. " $1.PushType = $11; //推送类型",
  482. " $1.PushFlag = $12; //推送标记",
  483. " $1.PushParam = $13; //推送参数",
  484. " $1.PushTime = $14; //推送时间",
  485. " $1.ExtendColumn = $15; //扩展字段",
  486. " $1.Remark = $16; //备注",
  487. " $1.Url = $17; //跳转Url",
  488. "}"
  489. ]
  490. },
  491. "获取公告消息数量": {
  492. "prefix": "ym-db-MsgPlacard-FindAndCount",
  493. "body": [
  494. "int $1 = db.MsgPlacard.Count(m => $2);",
  495. ]
  496. },
  497. "添加公告消息": {
  498. "prefix": "ym-db-MsgPlacard-Create",
  499. "body": [
  500. "db.MsgPlacard.Add(new MsgPlacard()",
  501. "{",
  502. " CreateDate = DateTime.Now,",
  503. " UpdateDate = DateTime.Now,",
  504. " MsgType = $1, //消息类型",
  505. " Title = $2, //标题",
  506. " Summary = $3, //简介",
  507. " Content = $4, //内容",
  508. " IsTop = $5, //置顶",
  509. " ShowType = $6, //展示类型",
  510. " EffectStartDate = $7, //有效开始时间",
  511. " EffectEndDate = $8, //有效结束时间",
  512. " BgPic = $9, //背景图片",
  513. " PushType = $10, //推送类型",
  514. " PushFlag = $11, //推送标记",
  515. " PushParam = $12, //推送参数",
  516. " PushTime = $13, //推送时间",
  517. " ExtendColumn = $14, //扩展字段",
  518. " Remark = $15, //备注",
  519. " Url = $16, //跳转Url",
  520. "});"
  521. ]
  522. },"删除某个公告消息": {
  523. "prefix": "ym-db-MsgPlacard-Delete",
  524. "body": [
  525. "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
  526. "if ($1 != null)",
  527. "{",
  528. " db.MsgPlacard.Remove($1);",
  529. "}"
  530. ]
  531. },
  532. "查询公告消息已读记录列表": {
  533. "prefix": "ym-db-MsgPlacardRead-Find",
  534. "body": [
  535. "List<MsgPlacardRead> $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  536. "foreach (MsgPlacardRead $3 in $1)",
  537. "{",
  538. "}"
  539. ]
  540. },
  541. "查询公告消息已读记录列表,并取值": {
  542. "prefix": "ym-db-MsgPlacardRead-FindWithData",
  543. "body": [
  544. "List<MsgPlacardRead> $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  545. "foreach (MsgPlacardRead $3 in $1)",
  546. "{",
  547. " int PlacardId = $3.PlacardId; //公告",
  548. " string UserId = $3.UserId; //用户ID",
  549. " ulong ReadFlag = $3.ReadFlag; //已读标记",
  550. " string Remark = $3.Remark; //备注",
  551. "}"
  552. ]
  553. },
  554. "查询公告消息已读记录": {
  555. "prefix": "ym-db-MsgPlacardRead-Exist",
  556. "body": [
  557. "bool $1 = db.MsgPlacardRead.Any(m => m.Id == $2);",
  558. ]
  559. },
  560. "查询某个公告消息已读记录,并取值": {
  561. "prefix": "ym-db-MsgPlacardRead-FindByPrimaryKey",
  562. "body": [
  563. "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
  564. "if ($1 != null)",
  565. "{",
  566. " int PlacardId = $1.PlacardId; //公告",
  567. " string UserId = $1.UserId; //用户ID",
  568. " ulong ReadFlag = $1.ReadFlag; //已读标记",
  569. " string Remark = $1.Remark; //备注",
  570. "}"
  571. ]
  572. },
  573. "查询某个公告消息已读记录,并赋值": {
  574. "prefix": "ym-db-MsgPlacardRead-Update",
  575. "body": [
  576. "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
  577. "if ($1 != null)",
  578. "{",
  579. " $1.PlacardId = $2; //公告",
  580. " $1.UserId = $3; //用户ID",
  581. " $1.ReadFlag = $4; //已读标记",
  582. " $1.Remark = $5; //备注",
  583. "}"
  584. ]
  585. },
  586. "获取公告消息已读记录数量": {
  587. "prefix": "ym-db-MsgPlacardRead-FindAndCount",
  588. "body": [
  589. "int $1 = db.MsgPlacardRead.Count(m => $2);",
  590. ]
  591. },
  592. "添加公告消息已读记录": {
  593. "prefix": "ym-db-MsgPlacardRead-Create",
  594. "body": [
  595. "db.MsgPlacardRead.Add(new MsgPlacardRead()",
  596. "{",
  597. " CreateDate = DateTime.Now,",
  598. " UpdateDate = DateTime.Now,",
  599. " PlacardId = $1, //公告",
  600. " UserId = $2, //用户ID",
  601. " ReadFlag = $3, //已读标记",
  602. " Remark = $4, //备注",
  603. "});"
  604. ]
  605. },"删除某个公告消息已读记录": {
  606. "prefix": "ym-db-MsgPlacardRead-Delete",
  607. "body": [
  608. "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
  609. "if ($1 != null)",
  610. "{",
  611. " db.MsgPlacardRead.Remove($1);",
  612. "}"
  613. ]
  614. },
  615. "查询推送消息记录列表": {
  616. "prefix": "ym-db-MsgPush-Find",
  617. "body": [
  618. "List<MsgPush> $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  619. "foreach (MsgPush $3 in $1)",
  620. "{",
  621. "}"
  622. ]
  623. },
  624. "查询推送消息记录列表,并取值": {
  625. "prefix": "ym-db-MsgPush-FindWithData",
  626. "body": [
  627. "List<MsgPush> $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  628. "foreach (MsgPush $3 in $1)",
  629. "{",
  630. " string ClientType = $3.ClientType; //客户端类型",
  631. " string Url = $3.Url; //链接地址",
  632. " string Title = $3.Title; //推送标题",
  633. " string Details = $3.Details; //推送内容",
  634. " ulong IsSilent = $3.IsSilent; //静音推送",
  635. " string Devices = $3.Devices; //设备号",
  636. " int TemplateId = $3.TemplateId; //模板",
  637. " DateTime AutoPushDate = $3.AutoPushDate; //定时推送时间",
  638. " string MessageId = $3.MessageId; //推送返回码",
  639. " string Mobiles = $3.Mobiles; //手机号",
  640. "}"
  641. ]
  642. },
  643. "查询推送消息记录": {
  644. "prefix": "ym-db-MsgPush-Exist",
  645. "body": [
  646. "bool $1 = db.MsgPush.Any(m => m.Id == $2);",
  647. ]
  648. },
  649. "查询某个推送消息记录,并取值": {
  650. "prefix": "ym-db-MsgPush-FindByPrimaryKey",
  651. "body": [
  652. "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
  653. "if ($1 != null)",
  654. "{",
  655. " string ClientType = $1.ClientType; //客户端类型",
  656. " string Url = $1.Url; //链接地址",
  657. " string Title = $1.Title; //推送标题",
  658. " string Details = $1.Details; //推送内容",
  659. " ulong IsSilent = $1.IsSilent; //静音推送",
  660. " string Devices = $1.Devices; //设备号",
  661. " int TemplateId = $1.TemplateId; //模板",
  662. " DateTime AutoPushDate = $1.AutoPushDate; //定时推送时间",
  663. " string MessageId = $1.MessageId; //推送返回码",
  664. " string Mobiles = $1.Mobiles; //手机号",
  665. "}"
  666. ]
  667. },
  668. "查询某个推送消息记录,并赋值": {
  669. "prefix": "ym-db-MsgPush-Update",
  670. "body": [
  671. "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
  672. "if ($1 != null)",
  673. "{",
  674. " $1.ClientType = $2; //客户端类型",
  675. " $1.Url = $3; //链接地址",
  676. " $1.Title = $4; //推送标题",
  677. " $1.Details = $5; //推送内容",
  678. " $1.IsSilent = $6; //静音推送",
  679. " $1.Devices = $7; //设备号",
  680. " $1.TemplateId = $8; //模板",
  681. " $1.AutoPushDate = $9; //定时推送时间",
  682. " $1.MessageId = $10; //推送返回码",
  683. " $1.Mobiles = $11; //手机号",
  684. "}"
  685. ]
  686. },
  687. "获取推送消息记录数量": {
  688. "prefix": "ym-db-MsgPush-FindAndCount",
  689. "body": [
  690. "int $1 = db.MsgPush.Count(m => $2);",
  691. ]
  692. },
  693. "添加推送消息记录": {
  694. "prefix": "ym-db-MsgPush-Create",
  695. "body": [
  696. "db.MsgPush.Add(new MsgPush()",
  697. "{",
  698. " CreateDate = DateTime.Now,",
  699. " UpdateDate = DateTime.Now,",
  700. " ClientType = $1, //客户端类型",
  701. " Url = $2, //链接地址",
  702. " Title = $3, //推送标题",
  703. " Details = $4, //推送内容",
  704. " IsSilent = $5, //静音推送",
  705. " Devices = $6, //设备号",
  706. " TemplateId = $7, //模板",
  707. " AutoPushDate = $8, //定时推送时间",
  708. " MessageId = $9, //推送返回码",
  709. " Mobiles = $10, //手机号",
  710. "});"
  711. ]
  712. },"删除某个推送消息记录": {
  713. "prefix": "ym-db-MsgPush-Delete",
  714. "body": [
  715. "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
  716. "if ($1 != null)",
  717. "{",
  718. " db.MsgPush.Remove($1);",
  719. "}"
  720. ]
  721. },
  722. "查询发送短信记录列表": {
  723. "prefix": "ym-db-MsgSms-Find",
  724. "body": [
  725. "List<MsgSms> $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  726. "foreach (MsgSms $3 in $1)",
  727. "{",
  728. "}"
  729. ]
  730. },
  731. "查询发送短信记录列表,并取值": {
  732. "prefix": "ym-db-MsgSms-FindWithData",
  733. "body": [
  734. "List<MsgSms> $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  735. "foreach (MsgSms $3 in $1)",
  736. "{",
  737. " string ColId = $3.ColId; //分类",
  738. " int TemplateId = $3.TemplateId; //模板",
  739. " string Mobile = $3.Mobile; //手机号",
  740. " string Ip = $3.Ip; //IP地址",
  741. " int SendType = $3.SendType; //发送类别",
  742. " int SmsType = $3.SmsType; //短信内容类型",
  743. " string Content = $3.Content; //内容",
  744. " string SignName = $3.SignName; //签名",
  745. " DateTime SendTime = $3.SendTime; //发送时间",
  746. " string RespContent = $3.RespContent; //返回报文",
  747. " string RespCode = $3.RespCode; //返回码",
  748. " string VerifyCode = $3.VerifyCode; //验证码",
  749. " int ErrorNum = $3.ErrorNum; //错误次数",
  750. " int VerifyStatus = $3.VerifyStatus; //校验状态",
  751. "}"
  752. ]
  753. },
  754. "查询发送短信记录": {
  755. "prefix": "ym-db-MsgSms-Exist",
  756. "body": [
  757. "bool $1 = db.MsgSms.Any(m => m.Id == $2);",
  758. ]
  759. },
  760. "查询某个发送短信记录,并取值": {
  761. "prefix": "ym-db-MsgSms-FindByPrimaryKey",
  762. "body": [
  763. "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
  764. "if ($1 != null)",
  765. "{",
  766. " string ColId = $1.ColId; //分类",
  767. " int TemplateId = $1.TemplateId; //模板",
  768. " string Mobile = $1.Mobile; //手机号",
  769. " string Ip = $1.Ip; //IP地址",
  770. " int SendType = $1.SendType; //发送类别",
  771. " int SmsType = $1.SmsType; //短信内容类型",
  772. " string Content = $1.Content; //内容",
  773. " string SignName = $1.SignName; //签名",
  774. " DateTime SendTime = $1.SendTime; //发送时间",
  775. " string RespContent = $1.RespContent; //返回报文",
  776. " string RespCode = $1.RespCode; //返回码",
  777. " string VerifyCode = $1.VerifyCode; //验证码",
  778. " int ErrorNum = $1.ErrorNum; //错误次数",
  779. " int VerifyStatus = $1.VerifyStatus; //校验状态",
  780. "}"
  781. ]
  782. },
  783. "查询某个发送短信记录,并赋值": {
  784. "prefix": "ym-db-MsgSms-Update",
  785. "body": [
  786. "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
  787. "if ($1 != null)",
  788. "{",
  789. " $1.ColId = $2; //分类",
  790. " $1.TemplateId = $3; //模板",
  791. " $1.Mobile = $4; //手机号",
  792. " $1.Ip = $5; //IP地址",
  793. " $1.SendType = $6; //发送类别",
  794. " $1.SmsType = $7; //短信内容类型",
  795. " $1.Content = $8; //内容",
  796. " $1.SignName = $9; //签名",
  797. " $1.SendTime = $10; //发送时间",
  798. " $1.RespContent = $11; //返回报文",
  799. " $1.RespCode = $12; //返回码",
  800. " $1.VerifyCode = $13; //验证码",
  801. " $1.ErrorNum = $14; //错误次数",
  802. " $1.VerifyStatus = $15; //校验状态",
  803. "}"
  804. ]
  805. },
  806. "获取发送短信记录数量": {
  807. "prefix": "ym-db-MsgSms-FindAndCount",
  808. "body": [
  809. "int $1 = db.MsgSms.Count(m => $2);",
  810. ]
  811. },
  812. "添加发送短信记录": {
  813. "prefix": "ym-db-MsgSms-Create",
  814. "body": [
  815. "db.MsgSms.Add(new MsgSms()",
  816. "{",
  817. " CreateDate = DateTime.Now,",
  818. " UpdateDate = DateTime.Now,",
  819. " ColId = $1, //分类",
  820. " TemplateId = $2, //模板",
  821. " Mobile = $3, //手机号",
  822. " Ip = $4, //IP地址",
  823. " SendType = $5, //发送类别",
  824. " SmsType = $6, //短信内容类型",
  825. " Content = $7, //内容",
  826. " SignName = $8, //签名",
  827. " SendTime = $9, //发送时间",
  828. " RespContent = $10, //返回报文",
  829. " RespCode = $11, //返回码",
  830. " VerifyCode = $12, //验证码",
  831. " ErrorNum = $13, //错误次数",
  832. " VerifyStatus = $14, //校验状态",
  833. "});"
  834. ]
  835. },"删除某个发送短信记录": {
  836. "prefix": "ym-db-MsgSms-Delete",
  837. "body": [
  838. "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
  839. "if ($1 != null)",
  840. "{",
  841. " db.MsgSms.Remove($1);",
  842. "}"
  843. ]
  844. },
  845. "查询发送短信配置列表": {
  846. "prefix": "ym-db-MsgSmsSet-Find",
  847. "body": [
  848. "List<MsgSmsSet> $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  849. "foreach (MsgSmsSet $3 in $1)",
  850. "{",
  851. "}"
  852. ]
  853. },
  854. "查询发送短信配置列表,并取值": {
  855. "prefix": "ym-db-MsgSmsSet-FindWithData",
  856. "body": [
  857. "List<MsgSmsSet> $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  858. "foreach (MsgSmsSet $3 in $1)",
  859. "{",
  860. " string Name = $3.Name; //渠道名称",
  861. " string UserName = $3.UserName; //账号",
  862. " string AuthPwd = $3.AuthPwd; //密码",
  863. " int SmsType = $3.SmsType; //类别",
  864. " string ReqUrl = $3.ReqUrl; //请求地址",
  865. " string Params = $3.Params; //请求参数",
  866. "}"
  867. ]
  868. },
  869. "查询发送短信配置": {
  870. "prefix": "ym-db-MsgSmsSet-Exist",
  871. "body": [
  872. "bool $1 = db.MsgSmsSet.Any(m => m.Id == $2);",
  873. ]
  874. },
  875. "查询某个发送短信配置,并取值": {
  876. "prefix": "ym-db-MsgSmsSet-FindByPrimaryKey",
  877. "body": [
  878. "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
  879. "if ($1 != null)",
  880. "{",
  881. " string Name = $1.Name; //渠道名称",
  882. " string UserName = $1.UserName; //账号",
  883. " string AuthPwd = $1.AuthPwd; //密码",
  884. " int SmsType = $1.SmsType; //类别",
  885. " string ReqUrl = $1.ReqUrl; //请求地址",
  886. " string Params = $1.Params; //请求参数",
  887. "}"
  888. ]
  889. },
  890. "查询某个发送短信配置,并赋值": {
  891. "prefix": "ym-db-MsgSmsSet-Update",
  892. "body": [
  893. "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
  894. "if ($1 != null)",
  895. "{",
  896. " $1.Name = $2; //渠道名称",
  897. " $1.UserName = $3; //账号",
  898. " $1.AuthPwd = $4; //密码",
  899. " $1.SmsType = $5; //类别",
  900. " $1.ReqUrl = $6; //请求地址",
  901. " $1.Params = $7; //请求参数",
  902. "}"
  903. ]
  904. },
  905. "获取发送短信配置数量": {
  906. "prefix": "ym-db-MsgSmsSet-FindAndCount",
  907. "body": [
  908. "int $1 = db.MsgSmsSet.Count(m => $2);",
  909. ]
  910. },
  911. "添加发送短信配置": {
  912. "prefix": "ym-db-MsgSmsSet-Create",
  913. "body": [
  914. "db.MsgSmsSet.Add(new MsgSmsSet()",
  915. "{",
  916. " CreateDate = DateTime.Now,",
  917. " UpdateDate = DateTime.Now,",
  918. " Name = $1, //渠道名称",
  919. " UserName = $2, //账号",
  920. " AuthPwd = $3, //密码",
  921. " SmsType = $4, //类别",
  922. " ReqUrl = $5, //请求地址",
  923. " Params = $6, //请求参数",
  924. "});"
  925. ]
  926. },"删除某个发送短信配置": {
  927. "prefix": "ym-db-MsgSmsSet-Delete",
  928. "body": [
  929. "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
  930. "if ($1 != null)",
  931. "{",
  932. " db.MsgSmsSet.Remove($1);",
  933. "}"
  934. ]
  935. },
  936. "查询消息模板列表": {
  937. "prefix": "ym-db-MsgTemplate-Find",
  938. "body": [
  939. "List<MsgTemplate> $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  940. "foreach (MsgTemplate $3 in $1)",
  941. "{",
  942. "}"
  943. ]
  944. },
  945. "查询消息模板列表,并取值": {
  946. "prefix": "ym-db-MsgTemplate-FindWithData",
  947. "body": [
  948. "List<MsgTemplate> $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  949. "foreach (MsgTemplate $3 in $1)",
  950. "{",
  951. " string Title = $3.Title; //标题",
  952. " string Content = $3.Content; //内容",
  953. " string ColId = $3.ColId; //分类",
  954. " int TemplateType = $3.TemplateType; //类型",
  955. " int MsgType = $3.MsgType; //消息类型",
  956. " string Remark = $3.Remark; //注释",
  957. " string Extend = $3.Extend; //扩展字段",
  958. "}"
  959. ]
  960. },
  961. "查询消息模板": {
  962. "prefix": "ym-db-MsgTemplate-Exist",
  963. "body": [
  964. "bool $1 = db.MsgTemplate.Any(m => m.Id == $2);",
  965. ]
  966. },
  967. "查询某个消息模板,并取值": {
  968. "prefix": "ym-db-MsgTemplate-FindByPrimaryKey",
  969. "body": [
  970. "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
  971. "if ($1 != null)",
  972. "{",
  973. " string Title = $1.Title; //标题",
  974. " string Content = $1.Content; //内容",
  975. " string ColId = $1.ColId; //分类",
  976. " int TemplateType = $1.TemplateType; //类型",
  977. " int MsgType = $1.MsgType; //消息类型",
  978. " string Remark = $1.Remark; //注释",
  979. " string Extend = $1.Extend; //扩展字段",
  980. "}"
  981. ]
  982. },
  983. "查询某个消息模板,并赋值": {
  984. "prefix": "ym-db-MsgTemplate-Update",
  985. "body": [
  986. "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
  987. "if ($1 != null)",
  988. "{",
  989. " $1.Title = $2; //标题",
  990. " $1.Content = $3; //内容",
  991. " $1.ColId = $4; //分类",
  992. " $1.TemplateType = $5; //类型",
  993. " $1.MsgType = $6; //消息类型",
  994. " $1.Remark = $7; //注释",
  995. " $1.Extend = $8; //扩展字段",
  996. "}"
  997. ]
  998. },
  999. "获取消息模板数量": {
  1000. "prefix": "ym-db-MsgTemplate-FindAndCount",
  1001. "body": [
  1002. "int $1 = db.MsgTemplate.Count(m => $2);",
  1003. ]
  1004. },
  1005. "添加消息模板": {
  1006. "prefix": "ym-db-MsgTemplate-Create",
  1007. "body": [
  1008. "db.MsgTemplate.Add(new MsgTemplate()",
  1009. "{",
  1010. " CreateDate = DateTime.Now,",
  1011. " UpdateDate = DateTime.Now,",
  1012. " Title = $1, //标题",
  1013. " Content = $2, //内容",
  1014. " ColId = $3, //分类",
  1015. " TemplateType = $4, //类型",
  1016. " MsgType = $5, //消息类型",
  1017. " Remark = $6, //注释",
  1018. " Extend = $7, //扩展字段",
  1019. "});"
  1020. ]
  1021. },"删除某个消息模板": {
  1022. "prefix": "ym-db-MsgTemplate-Delete",
  1023. "body": [
  1024. "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
  1025. "if ($1 != null)",
  1026. "{",
  1027. " db.MsgTemplate.Remove($1);",
  1028. "}"
  1029. ]
  1030. },
  1031. "查询操作日志列表": {
  1032. "prefix": "ym-db-OperateLog-Find",
  1033. "body": [
  1034. "List<OperateLog> $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1035. "foreach (OperateLog $3 in $1)",
  1036. "{",
  1037. "}"
  1038. ]
  1039. },
  1040. "查询操作日志列表,并取值": {
  1041. "prefix": "ym-db-OperateLog-FindWithData",
  1042. "body": [
  1043. "List<OperateLog> $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1044. "foreach (OperateLog $3 in $1)",
  1045. "{",
  1046. " string TableEnName = $3.TableEnName; //表",
  1047. " string OperateMan = $3.OperateMan; //操作员",
  1048. " string BeforeOperate = $3.BeforeOperate; //操作前的数据",
  1049. " string AfterOperate = $3.AfterOperate; //操作后的数据",
  1050. " string OpMode = $3.OpMode; //操作方式",
  1051. "}"
  1052. ]
  1053. },
  1054. "查询操作日志": {
  1055. "prefix": "ym-db-OperateLog-Exist",
  1056. "body": [
  1057. "bool $1 = db.OperateLog.Any(m => m.Id == $2);",
  1058. ]
  1059. },
  1060. "查询某个操作日志,并取值": {
  1061. "prefix": "ym-db-OperateLog-FindByPrimaryKey",
  1062. "body": [
  1063. "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
  1064. "if ($1 != null)",
  1065. "{",
  1066. " string TableEnName = $1.TableEnName; //表",
  1067. " string OperateMan = $1.OperateMan; //操作员",
  1068. " string BeforeOperate = $1.BeforeOperate; //操作前的数据",
  1069. " string AfterOperate = $1.AfterOperate; //操作后的数据",
  1070. " string OpMode = $1.OpMode; //操作方式",
  1071. "}"
  1072. ]
  1073. },
  1074. "查询某个操作日志,并赋值": {
  1075. "prefix": "ym-db-OperateLog-Update",
  1076. "body": [
  1077. "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
  1078. "if ($1 != null)",
  1079. "{",
  1080. " $1.TableEnName = $2; //表",
  1081. " $1.OperateMan = $3; //操作员",
  1082. " $1.BeforeOperate = $4; //操作前的数据",
  1083. " $1.AfterOperate = $5; //操作后的数据",
  1084. " $1.OpMode = $6; //操作方式",
  1085. "}"
  1086. ]
  1087. },
  1088. "获取操作日志数量": {
  1089. "prefix": "ym-db-OperateLog-FindAndCount",
  1090. "body": [
  1091. "int $1 = db.OperateLog.Count(m => $2);",
  1092. ]
  1093. },
  1094. "添加操作日志": {
  1095. "prefix": "ym-db-OperateLog-Create",
  1096. "body": [
  1097. "db.OperateLog.Add(new OperateLog()",
  1098. "{",
  1099. " CreateDate = DateTime.Now,",
  1100. " UpdateDate = DateTime.Now,",
  1101. " TableEnName = $1, //表",
  1102. " OperateMan = $2, //操作员",
  1103. " BeforeOperate = $3, //操作前的数据",
  1104. " AfterOperate = $4, //操作后的数据",
  1105. " OpMode = $5, //操作方式",
  1106. "});"
  1107. ]
  1108. },"删除某个操作日志": {
  1109. "prefix": "ym-db-OperateLog-Delete",
  1110. "body": [
  1111. "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
  1112. "if ($1 != null)",
  1113. "{",
  1114. " db.OperateLog.Remove($1);",
  1115. "}"
  1116. ]
  1117. },
  1118. "查询单页内容列表": {
  1119. "prefix": "ym-db-PageInfo-Find",
  1120. "body": [
  1121. "List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1122. "foreach (PageInfo $3 in $1)",
  1123. "{",
  1124. "}"
  1125. ]
  1126. },
  1127. "查询单页内容列表,并取值": {
  1128. "prefix": "ym-db-PageInfo-FindWithData",
  1129. "body": [
  1130. "List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1131. "foreach (PageInfo $3 in $1)",
  1132. "{",
  1133. " string Title = $3.Title; //标题",
  1134. " string ColId = $3.ColId; //分类",
  1135. " string Contents = $3.Contents; //内容",
  1136. "}"
  1137. ]
  1138. },
  1139. "查询单页内容": {
  1140. "prefix": "ym-db-PageInfo-Exist",
  1141. "body": [
  1142. "bool $1 = db.PageInfo.Any(m => m.Id == $2);",
  1143. ]
  1144. },
  1145. "查询某个单页内容,并取值": {
  1146. "prefix": "ym-db-PageInfo-FindByPrimaryKey",
  1147. "body": [
  1148. "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
  1149. "if ($1 != null)",
  1150. "{",
  1151. " string Title = $1.Title; //标题",
  1152. " string ColId = $1.ColId; //分类",
  1153. " string Contents = $1.Contents; //内容",
  1154. "}"
  1155. ]
  1156. },
  1157. "查询某个单页内容,并赋值": {
  1158. "prefix": "ym-db-PageInfo-Update",
  1159. "body": [
  1160. "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
  1161. "if ($1 != null)",
  1162. "{",
  1163. " $1.Title = $2; //标题",
  1164. " $1.ColId = $3; //分类",
  1165. " $1.Contents = $4; //内容",
  1166. "}"
  1167. ]
  1168. },
  1169. "获取单页内容数量": {
  1170. "prefix": "ym-db-PageInfo-FindAndCount",
  1171. "body": [
  1172. "int $1 = db.PageInfo.Count(m => $2);",
  1173. ]
  1174. },
  1175. "添加单页内容": {
  1176. "prefix": "ym-db-PageInfo-Create",
  1177. "body": [
  1178. "db.PageInfo.Add(new PageInfo()",
  1179. "{",
  1180. " CreateDate = DateTime.Now,",
  1181. " UpdateDate = DateTime.Now,",
  1182. " Title = $1, //标题",
  1183. " ColId = $2, //分类",
  1184. " Contents = $3, //内容",
  1185. "});"
  1186. ]
  1187. },"删除某个单页内容": {
  1188. "prefix": "ym-db-PageInfo-Delete",
  1189. "body": [
  1190. "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
  1191. "if ($1 != null)",
  1192. "{",
  1193. " db.PageInfo.Remove($1);",
  1194. "}"
  1195. ]
  1196. },
  1197. "查询第三方平台设置列表": {
  1198. "prefix": "ym-db-PublicAccountSet-Find",
  1199. "body": [
  1200. "List<PublicAccountSet> $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1201. "foreach (PublicAccountSet $3 in $1)",
  1202. "{",
  1203. "}"
  1204. ]
  1205. },
  1206. "查询第三方平台设置列表,并取值": {
  1207. "prefix": "ym-db-PublicAccountSet-FindWithData",
  1208. "body": [
  1209. "List<PublicAccountSet> $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1210. "foreach (PublicAccountSet $3 in $1)",
  1211. "{",
  1212. " int Id = $3.Id; //Id",
  1213. " string AlipayAppId = $3.AlipayAppId; //支付宝AppId",
  1214. " string AlipayPartnerId = $3.AlipayPartnerId; //支付宝合作者Id",
  1215. " string AlipayPrivateKey = $3.AlipayPrivateKey; //支付宝私钥",
  1216. " string AlipayPublicKey = $3.AlipayPublicKey; //支付宝公钥",
  1217. " string WeChatAppId = $3.WeChatAppId; //微信公众号AppId",
  1218. " string WeChatAppSecret = $3.WeChatAppSecret; //微信公众号AppSecret",
  1219. " string WeChatMchId = $3.WeChatMchId; //微信商户号",
  1220. " string WeChatPayKey = $3.WeChatPayKey; //微信支付密钥",
  1221. " string WeChatOpenAppId = $3.WeChatOpenAppId; //微信开放平台AppId",
  1222. " string WeChatOpenAppSecret = $3.WeChatOpenAppSecret; //微信开放平台AppSecret",
  1223. " string ServerIp = $3.ServerIp; //服务器IP",
  1224. " string WeChatMiniAppId = $3.WeChatMiniAppId; //微信小程序AppId",
  1225. " string WeChatMiniAppSecret = $3.WeChatMiniAppSecret; //微信小程序AppSecret",
  1226. " string QqAndroidAppId = $3.QqAndroidAppId; //QQ安卓AppId",
  1227. " string QqAndroidAppKey = $3.QqAndroidAppKey; //QQ安卓AppKey",
  1228. " string QqIosAppId = $3.QqIosAppId; //QQIOSAppId",
  1229. " string QqIosAppKey = $3.QqIosAppKey; //QQIOSAppKey",
  1230. " string AliyunAccessKeyId = $3.AliyunAccessKeyId; //阿里云AccessKeyID",
  1231. " string AliyunAccessKeySecret = $3.AliyunAccessKeySecret; //阿里云AccessKeySecret",
  1232. " string AliyunPushAndroidAppId = $3.AliyunPushAndroidAppId; //阿里云推送安卓AppId",
  1233. " string AliyunPushAndroidAppSecret = $3.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret",
  1234. " string AliyunPushIosAppId = $3.AliyunPushIosAppId; //阿里云推送IOSAppId",
  1235. " string AliyunPushIosAppSecret = $3.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret",
  1236. " string MobAppKey = $3.MobAppKey; //MobAppKey",
  1237. " string MobAppSecret = $3.MobAppSecret; //MobAppSecret",
  1238. " string MeiQiaAppKey = $3.MeiQiaAppKey; //美洽AppKey",
  1239. " string ErpApiUrl = $3.ErpApiUrl; //请求地址",
  1240. " string ErpAppCode = $3.ErpAppCode; //AppCode",
  1241. " string SmsApiPwd = $3.SmsApiPwd; //密码",
  1242. " string SmsApiSign = $3.SmsApiSign; //签名",
  1243. " string SmsApiUserId = $3.SmsApiUserId; //账号",
  1244. " string SmsApiDefaultTemplate = $3.SmsApiDefaultTemplate; //默认验证码模板",
  1245. " string AliyunRegionId = $3.AliyunRegionId; //阿里云服务器别名",
  1246. " string AliyunAndroidNotifyTitle = $3.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题",
  1247. " string AliyunAndroidActivity = $3.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity",
  1248. "}"
  1249. ]
  1250. },
  1251. "查询第三方平台设置": {
  1252. "prefix": "ym-db-PublicAccountSet-Exist",
  1253. "body": [
  1254. "bool $1 = db.PublicAccountSet.Any(m => m.Id == $2);",
  1255. ]
  1256. },
  1257. "查询某个第三方平台设置,并取值": {
  1258. "prefix": "ym-db-PublicAccountSet-FindByPrimaryKey",
  1259. "body": [
  1260. "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
  1261. "if ($1 != null)",
  1262. "{",
  1263. " int Id = $1.Id; //Id",
  1264. " string AlipayAppId = $1.AlipayAppId; //支付宝AppId",
  1265. " string AlipayPartnerId = $1.AlipayPartnerId; //支付宝合作者Id",
  1266. " string AlipayPrivateKey = $1.AlipayPrivateKey; //支付宝私钥",
  1267. " string AlipayPublicKey = $1.AlipayPublicKey; //支付宝公钥",
  1268. " string WeChatAppId = $1.WeChatAppId; //微信公众号AppId",
  1269. " string WeChatAppSecret = $1.WeChatAppSecret; //微信公众号AppSecret",
  1270. " string WeChatMchId = $1.WeChatMchId; //微信商户号",
  1271. " string WeChatPayKey = $1.WeChatPayKey; //微信支付密钥",
  1272. " string WeChatOpenAppId = $1.WeChatOpenAppId; //微信开放平台AppId",
  1273. " string WeChatOpenAppSecret = $1.WeChatOpenAppSecret; //微信开放平台AppSecret",
  1274. " string ServerIp = $1.ServerIp; //服务器IP",
  1275. " string WeChatMiniAppId = $1.WeChatMiniAppId; //微信小程序AppId",
  1276. " string WeChatMiniAppSecret = $1.WeChatMiniAppSecret; //微信小程序AppSecret",
  1277. " string QqAndroidAppId = $1.QqAndroidAppId; //QQ安卓AppId",
  1278. " string QqAndroidAppKey = $1.QqAndroidAppKey; //QQ安卓AppKey",
  1279. " string QqIosAppId = $1.QqIosAppId; //QQIOSAppId",
  1280. " string QqIosAppKey = $1.QqIosAppKey; //QQIOSAppKey",
  1281. " string AliyunAccessKeyId = $1.AliyunAccessKeyId; //阿里云AccessKeyID",
  1282. " string AliyunAccessKeySecret = $1.AliyunAccessKeySecret; //阿里云AccessKeySecret",
  1283. " string AliyunPushAndroidAppId = $1.AliyunPushAndroidAppId; //阿里云推送安卓AppId",
  1284. " string AliyunPushAndroidAppSecret = $1.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret",
  1285. " string AliyunPushIosAppId = $1.AliyunPushIosAppId; //阿里云推送IOSAppId",
  1286. " string AliyunPushIosAppSecret = $1.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret",
  1287. " string MobAppKey = $1.MobAppKey; //MobAppKey",
  1288. " string MobAppSecret = $1.MobAppSecret; //MobAppSecret",
  1289. " string MeiQiaAppKey = $1.MeiQiaAppKey; //美洽AppKey",
  1290. " string ErpApiUrl = $1.ErpApiUrl; //请求地址",
  1291. " string ErpAppCode = $1.ErpAppCode; //AppCode",
  1292. " string SmsApiPwd = $1.SmsApiPwd; //密码",
  1293. " string SmsApiSign = $1.SmsApiSign; //签名",
  1294. " string SmsApiUserId = $1.SmsApiUserId; //账号",
  1295. " string SmsApiDefaultTemplate = $1.SmsApiDefaultTemplate; //默认验证码模板",
  1296. " string AliyunRegionId = $1.AliyunRegionId; //阿里云服务器别名",
  1297. " string AliyunAndroidNotifyTitle = $1.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题",
  1298. " string AliyunAndroidActivity = $1.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity",
  1299. "}"
  1300. ]
  1301. },
  1302. "查询某个第三方平台设置,并赋值": {
  1303. "prefix": "ym-db-PublicAccountSet-Update",
  1304. "body": [
  1305. "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
  1306. "if ($1 != null)",
  1307. "{",
  1308. " $1.Id = $2; //Id",
  1309. " $1.AlipayAppId = $3; //支付宝AppId",
  1310. " $1.AlipayPartnerId = $4; //支付宝合作者Id",
  1311. " $1.AlipayPrivateKey = $5; //支付宝私钥",
  1312. " $1.AlipayPublicKey = $6; //支付宝公钥",
  1313. " $1.WeChatAppId = $7; //微信公众号AppId",
  1314. " $1.WeChatAppSecret = $8; //微信公众号AppSecret",
  1315. " $1.WeChatMchId = $9; //微信商户号",
  1316. " $1.WeChatPayKey = $10; //微信支付密钥",
  1317. " $1.WeChatOpenAppId = $11; //微信开放平台AppId",
  1318. " $1.WeChatOpenAppSecret = $12; //微信开放平台AppSecret",
  1319. " $1.ServerIp = $13; //服务器IP",
  1320. " $1.WeChatMiniAppId = $14; //微信小程序AppId",
  1321. " $1.WeChatMiniAppSecret = $15; //微信小程序AppSecret",
  1322. " $1.QqAndroidAppId = $16; //QQ安卓AppId",
  1323. " $1.QqAndroidAppKey = $17; //QQ安卓AppKey",
  1324. " $1.QqIosAppId = $18; //QQIOSAppId",
  1325. " $1.QqIosAppKey = $19; //QQIOSAppKey",
  1326. " $1.AliyunAccessKeyId = $20; //阿里云AccessKeyID",
  1327. " $1.AliyunAccessKeySecret = $21; //阿里云AccessKeySecret",
  1328. " $1.AliyunPushAndroidAppId = $22; //阿里云推送安卓AppId",
  1329. " $1.AliyunPushAndroidAppSecret = $23; //阿里云推送安卓AppSecret",
  1330. " $1.AliyunPushIosAppId = $24; //阿里云推送IOSAppId",
  1331. " $1.AliyunPushIosAppSecret = $25; //阿里云推送IOSAppSecret",
  1332. " $1.MobAppKey = $26; //MobAppKey",
  1333. " $1.MobAppSecret = $27; //MobAppSecret",
  1334. " $1.MeiQiaAppKey = $28; //美洽AppKey",
  1335. " $1.ErpApiUrl = $29; //请求地址",
  1336. " $1.ErpAppCode = $30; //AppCode",
  1337. " $1.SmsApiPwd = $31; //密码",
  1338. " $1.SmsApiSign = $32; //签名",
  1339. " $1.SmsApiUserId = $33; //账号",
  1340. " $1.SmsApiDefaultTemplate = $34; //默认验证码模板",
  1341. " $1.AliyunRegionId = $35; //阿里云服务器别名",
  1342. " $1.AliyunAndroidNotifyTitle = $36; //阿里云安卓弹窗标题",
  1343. " $1.AliyunAndroidActivity = $37; //阿里云点击通知后跳转的Activity",
  1344. "}"
  1345. ]
  1346. },
  1347. "获取第三方平台设置数量": {
  1348. "prefix": "ym-db-PublicAccountSet-FindAndCount",
  1349. "body": [
  1350. "int $1 = db.PublicAccountSet.Count(m => $2);",
  1351. ]
  1352. },
  1353. "添加第三方平台设置": {
  1354. "prefix": "ym-db-PublicAccountSet-Create",
  1355. "body": [
  1356. "db.PublicAccountSet.Add(new PublicAccountSet()",
  1357. "{",
  1358. " CreateDate = DateTime.Now,",
  1359. " UpdateDate = DateTime.Now,",
  1360. " Id = $1, //Id",
  1361. " AlipayAppId = $2, //支付宝AppId",
  1362. " AlipayPartnerId = $3, //支付宝合作者Id",
  1363. " AlipayPrivateKey = $4, //支付宝私钥",
  1364. " AlipayPublicKey = $5, //支付宝公钥",
  1365. " WeChatAppId = $6, //微信公众号AppId",
  1366. " WeChatAppSecret = $7, //微信公众号AppSecret",
  1367. " WeChatMchId = $8, //微信商户号",
  1368. " WeChatPayKey = $9, //微信支付密钥",
  1369. " WeChatOpenAppId = $10, //微信开放平台AppId",
  1370. " WeChatOpenAppSecret = $11, //微信开放平台AppSecret",
  1371. " ServerIp = $12, //服务器IP",
  1372. " WeChatMiniAppId = $13, //微信小程序AppId",
  1373. " WeChatMiniAppSecret = $14, //微信小程序AppSecret",
  1374. " QqAndroidAppId = $15, //QQ安卓AppId",
  1375. " QqAndroidAppKey = $16, //QQ安卓AppKey",
  1376. " QqIosAppId = $17, //QQIOSAppId",
  1377. " QqIosAppKey = $18, //QQIOSAppKey",
  1378. " AliyunAccessKeyId = $19, //阿里云AccessKeyID",
  1379. " AliyunAccessKeySecret = $20, //阿里云AccessKeySecret",
  1380. " AliyunPushAndroidAppId = $21, //阿里云推送安卓AppId",
  1381. " AliyunPushAndroidAppSecret = $22, //阿里云推送安卓AppSecret",
  1382. " AliyunPushIosAppId = $23, //阿里云推送IOSAppId",
  1383. " AliyunPushIosAppSecret = $24, //阿里云推送IOSAppSecret",
  1384. " MobAppKey = $25, //MobAppKey",
  1385. " MobAppSecret = $26, //MobAppSecret",
  1386. " MeiQiaAppKey = $27, //美洽AppKey",
  1387. " ErpApiUrl = $28, //请求地址",
  1388. " ErpAppCode = $29, //AppCode",
  1389. " SmsApiPwd = $30, //密码",
  1390. " SmsApiSign = $31, //签名",
  1391. " SmsApiUserId = $32, //账号",
  1392. " SmsApiDefaultTemplate = $33, //默认验证码模板",
  1393. " AliyunRegionId = $34, //阿里云服务器别名",
  1394. " AliyunAndroidNotifyTitle = $35, //阿里云安卓弹窗标题",
  1395. " AliyunAndroidActivity = $36, //阿里云点击通知后跳转的Activity",
  1396. "});"
  1397. ]
  1398. },"删除某个第三方平台设置": {
  1399. "prefix": "ym-db-PublicAccountSet-Delete",
  1400. "body": [
  1401. "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
  1402. "if ($1 != null)",
  1403. "{",
  1404. " db.PublicAccountSet.Remove($1);",
  1405. "}"
  1406. ]
  1407. },
  1408. "查询后台管理员列表": {
  1409. "prefix": "ym-db-SysAdmin-Find",
  1410. "body": [
  1411. "List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1412. "foreach (SysAdmin $3 in $1)",
  1413. "{",
  1414. "}"
  1415. ]
  1416. },
  1417. "查询后台管理员列表,并取值": {
  1418. "prefix": "ym-db-SysAdmin-FindWithData",
  1419. "body": [
  1420. "List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1421. "foreach (SysAdmin $3 in $1)",
  1422. "{",
  1423. " string AdminName = $3.AdminName; //用户名",
  1424. " string Password = $3.Password; //密码",
  1425. " string RealName = $3.RealName; //名称",
  1426. " string Role = $3.Role; //角色",
  1427. " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
  1428. "}"
  1429. ]
  1430. },
  1431. "查询后台管理员": {
  1432. "prefix": "ym-db-SysAdmin-Exist",
  1433. "body": [
  1434. "bool $1 = db.SysAdmin.Any(m => m.Id == $2);",
  1435. ]
  1436. },
  1437. "查询某个后台管理员,并取值": {
  1438. "prefix": "ym-db-SysAdmin-FindByPrimaryKey",
  1439. "body": [
  1440. "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
  1441. "if ($1 != null)",
  1442. "{",
  1443. " string AdminName = $1.AdminName; //用户名",
  1444. " string Password = $1.Password; //密码",
  1445. " string RealName = $1.RealName; //名称",
  1446. " string Role = $1.Role; //角色",
  1447. " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
  1448. "}"
  1449. ]
  1450. },
  1451. "查询某个后台管理员,并赋值": {
  1452. "prefix": "ym-db-SysAdmin-Update",
  1453. "body": [
  1454. "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
  1455. "if ($1 != null)",
  1456. "{",
  1457. " $1.AdminName = $2; //用户名",
  1458. " $1.Password = $3; //密码",
  1459. " $1.RealName = $4; //名称",
  1460. " $1.Role = $5; //角色",
  1461. " $1.LastLoginDate = $6; //最后登录时间",
  1462. "}"
  1463. ]
  1464. },
  1465. "获取后台管理员数量": {
  1466. "prefix": "ym-db-SysAdmin-FindAndCount",
  1467. "body": [
  1468. "int $1 = db.SysAdmin.Count(m => $2);",
  1469. ]
  1470. },
  1471. "添加后台管理员": {
  1472. "prefix": "ym-db-SysAdmin-Create",
  1473. "body": [
  1474. "db.SysAdmin.Add(new SysAdmin()",
  1475. "{",
  1476. " CreateDate = DateTime.Now,",
  1477. " UpdateDate = DateTime.Now,",
  1478. " AdminName = $1, //用户名",
  1479. " Password = $2, //密码",
  1480. " RealName = $3, //名称",
  1481. " Role = $4, //角色",
  1482. " LastLoginDate = $5, //最后登录时间",
  1483. "});"
  1484. ]
  1485. },"删除某个后台管理员": {
  1486. "prefix": "ym-db-SysAdmin-Delete",
  1487. "body": [
  1488. "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
  1489. "if ($1 != null)",
  1490. "{",
  1491. " db.SysAdmin.Remove($1);",
  1492. "}"
  1493. ]
  1494. },
  1495. "查询后台管理员角色列表": {
  1496. "prefix": "ym-db-SysAdminRole-Find",
  1497. "body": [
  1498. "List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1499. "foreach (SysAdminRole $3 in $1)",
  1500. "{",
  1501. "}"
  1502. ]
  1503. },
  1504. "查询后台管理员角色列表,并取值": {
  1505. "prefix": "ym-db-SysAdminRole-FindWithData",
  1506. "body": [
  1507. "List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1508. "foreach (SysAdminRole $3 in $1)",
  1509. "{",
  1510. " string Name = $3.Name; //名称",
  1511. " string Details = $3.Details; //描述",
  1512. " string RightInfo = $3.RightInfo; //权限设置",
  1513. "}"
  1514. ]
  1515. },
  1516. "查询后台管理员角色": {
  1517. "prefix": "ym-db-SysAdminRole-Exist",
  1518. "body": [
  1519. "bool $1 = db.SysAdminRole.Any(m => m.Id == $2);",
  1520. ]
  1521. },
  1522. "查询某个后台管理员角色,并取值": {
  1523. "prefix": "ym-db-SysAdminRole-FindByPrimaryKey",
  1524. "body": [
  1525. "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
  1526. "if ($1 != null)",
  1527. "{",
  1528. " string Name = $1.Name; //名称",
  1529. " string Details = $1.Details; //描述",
  1530. " string RightInfo = $1.RightInfo; //权限设置",
  1531. "}"
  1532. ]
  1533. },
  1534. "查询某个后台管理员角色,并赋值": {
  1535. "prefix": "ym-db-SysAdminRole-Update",
  1536. "body": [
  1537. "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
  1538. "if ($1 != null)",
  1539. "{",
  1540. " $1.Name = $2; //名称",
  1541. " $1.Details = $3; //描述",
  1542. " $1.RightInfo = $4; //权限设置",
  1543. "}"
  1544. ]
  1545. },
  1546. "获取后台管理员角色数量": {
  1547. "prefix": "ym-db-SysAdminRole-FindAndCount",
  1548. "body": [
  1549. "int $1 = db.SysAdminRole.Count(m => $2);",
  1550. ]
  1551. },
  1552. "添加后台管理员角色": {
  1553. "prefix": "ym-db-SysAdminRole-Create",
  1554. "body": [
  1555. "db.SysAdminRole.Add(new SysAdminRole()",
  1556. "{",
  1557. " CreateDate = DateTime.Now,",
  1558. " UpdateDate = DateTime.Now,",
  1559. " Name = $1, //名称",
  1560. " Details = $2, //描述",
  1561. " RightInfo = $3, //权限设置",
  1562. "});"
  1563. ]
  1564. },"删除某个后台管理员角色": {
  1565. "prefix": "ym-db-SysAdminRole-Delete",
  1566. "body": [
  1567. "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
  1568. "if ($1 != null)",
  1569. "{",
  1570. " db.SysAdminRole.Remove($1);",
  1571. "}"
  1572. ]
  1573. },
  1574. "查询系统设置列表": {
  1575. "prefix": "ym-db-SystemSet-Find",
  1576. "body": [
  1577. "List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1578. "foreach (SystemSet $3 in $1)",
  1579. "{",
  1580. "}"
  1581. ]
  1582. },
  1583. "查询系统设置列表,并取值": {
  1584. "prefix": "ym-db-SystemSet-FindWithData",
  1585. "body": [
  1586. "List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1587. "foreach (SystemSet $3 in $1)",
  1588. "{",
  1589. " string WebUrl = $3.WebUrl; //网站地址",
  1590. " string WebName = $3.WebName; //网站名称",
  1591. " string IndexKeyword = $3.IndexKeyword; //首页关键词",
  1592. " string IndexDescription = $3.IndexDescription; //首页简介",
  1593. " string UploadExt = $3.UploadExt; //允许上传类型",
  1594. " int UploadMaxSize = $3.UploadMaxSize; //允许最大上传",
  1595. " ulong UploadAutoZoom = $3.UploadAutoZoom; //自动缩略图",
  1596. " int UploadAutoZoomWidth = $3.UploadAutoZoomWidth; //自动缩略图宽",
  1597. " int UploadAutoZoomHeight = $3.UploadAutoZoomHeight; //自动缩略图高",
  1598. " ulong UploadAutoWater = $3.UploadAutoWater; //自动水印",
  1599. " string UploadWaterPosition = $3.UploadWaterPosition; //水印位置",
  1600. " string UploadWaterPath = $3.UploadWaterPath; //水印图片",
  1601. " string RightInfo = $3.RightInfo; //版权信息",
  1602. " string Address = $3.Address; //企业地址",
  1603. " string Phone = $3.Phone; //联系电话",
  1604. " string WebStatCode = $3.WebStatCode; //网站统计代码",
  1605. " string Logo = $3.Logo; //Logo图片",
  1606. "}"
  1607. ]
  1608. },
  1609. "查询系统设置": {
  1610. "prefix": "ym-db-SystemSet-Exist",
  1611. "body": [
  1612. "bool $1 = db.SystemSet.Any(m => m.Id == $2);",
  1613. ]
  1614. },
  1615. "查询某个系统设置,并取值": {
  1616. "prefix": "ym-db-SystemSet-FindByPrimaryKey",
  1617. "body": [
  1618. "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
  1619. "if ($1 != null)",
  1620. "{",
  1621. " string WebUrl = $1.WebUrl; //网站地址",
  1622. " string WebName = $1.WebName; //网站名称",
  1623. " string IndexKeyword = $1.IndexKeyword; //首页关键词",
  1624. " string IndexDescription = $1.IndexDescription; //首页简介",
  1625. " string UploadExt = $1.UploadExt; //允许上传类型",
  1626. " int UploadMaxSize = $1.UploadMaxSize; //允许最大上传",
  1627. " ulong UploadAutoZoom = $1.UploadAutoZoom; //自动缩略图",
  1628. " int UploadAutoZoomWidth = $1.UploadAutoZoomWidth; //自动缩略图宽",
  1629. " int UploadAutoZoomHeight = $1.UploadAutoZoomHeight; //自动缩略图高",
  1630. " ulong UploadAutoWater = $1.UploadAutoWater; //自动水印",
  1631. " string UploadWaterPosition = $1.UploadWaterPosition; //水印位置",
  1632. " string UploadWaterPath = $1.UploadWaterPath; //水印图片",
  1633. " string RightInfo = $1.RightInfo; //版权信息",
  1634. " string Address = $1.Address; //企业地址",
  1635. " string Phone = $1.Phone; //联系电话",
  1636. " string WebStatCode = $1.WebStatCode; //网站统计代码",
  1637. " string Logo = $1.Logo; //Logo图片",
  1638. "}"
  1639. ]
  1640. },
  1641. "查询某个系统设置,并赋值": {
  1642. "prefix": "ym-db-SystemSet-Update",
  1643. "body": [
  1644. "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
  1645. "if ($1 != null)",
  1646. "{",
  1647. " $1.WebUrl = $2; //网站地址",
  1648. " $1.WebName = $3; //网站名称",
  1649. " $1.IndexKeyword = $4; //首页关键词",
  1650. " $1.IndexDescription = $5; //首页简介",
  1651. " $1.UploadExt = $6; //允许上传类型",
  1652. " $1.UploadMaxSize = $7; //允许最大上传",
  1653. " $1.UploadAutoZoom = $8; //自动缩略图",
  1654. " $1.UploadAutoZoomWidth = $9; //自动缩略图宽",
  1655. " $1.UploadAutoZoomHeight = $10; //自动缩略图高",
  1656. " $1.UploadAutoWater = $11; //自动水印",
  1657. " $1.UploadWaterPosition = $12; //水印位置",
  1658. " $1.UploadWaterPath = $13; //水印图片",
  1659. " $1.RightInfo = $14; //版权信息",
  1660. " $1.Address = $15; //企业地址",
  1661. " $1.Phone = $16; //联系电话",
  1662. " $1.WebStatCode = $17; //网站统计代码",
  1663. " $1.Logo = $18; //Logo图片",
  1664. "}"
  1665. ]
  1666. },
  1667. "获取系统设置数量": {
  1668. "prefix": "ym-db-SystemSet-FindAndCount",
  1669. "body": [
  1670. "int $1 = db.SystemSet.Count(m => $2);",
  1671. ]
  1672. },
  1673. "添加系统设置": {
  1674. "prefix": "ym-db-SystemSet-Create",
  1675. "body": [
  1676. "db.SystemSet.Add(new SystemSet()",
  1677. "{",
  1678. " CreateDate = DateTime.Now,",
  1679. " UpdateDate = DateTime.Now,",
  1680. " WebUrl = $1, //网站地址",
  1681. " WebName = $2, //网站名称",
  1682. " IndexKeyword = $3, //首页关键词",
  1683. " IndexDescription = $4, //首页简介",
  1684. " UploadExt = $5, //允许上传类型",
  1685. " UploadMaxSize = $6, //允许最大上传",
  1686. " UploadAutoZoom = $7, //自动缩略图",
  1687. " UploadAutoZoomWidth = $8, //自动缩略图宽",
  1688. " UploadAutoZoomHeight = $9, //自动缩略图高",
  1689. " UploadAutoWater = $10, //自动水印",
  1690. " UploadWaterPosition = $11, //水印位置",
  1691. " UploadWaterPath = $12, //水印图片",
  1692. " RightInfo = $13, //版权信息",
  1693. " Address = $14, //企业地址",
  1694. " Phone = $15, //联系电话",
  1695. " WebStatCode = $16, //网站统计代码",
  1696. " Logo = $17, //Logo图片",
  1697. "});"
  1698. ]
  1699. },"删除某个系统设置": {
  1700. "prefix": "ym-db-SystemSet-Delete",
  1701. "body": [
  1702. "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
  1703. "if ($1 != null)",
  1704. "{",
  1705. " db.SystemSet.Remove($1);",
  1706. "}"
  1707. ]
  1708. },
  1709. "查询上传配置项列表": {
  1710. "prefix": "ym-db-UploadParams-Find",
  1711. "body": [
  1712. "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1713. "foreach (UploadParams $3 in $1)",
  1714. "{",
  1715. "}"
  1716. ]
  1717. },
  1718. "查询上传配置项列表,并取值": {
  1719. "prefix": "ym-db-UploadParams-FindWithData",
  1720. "body": [
  1721. "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1722. "foreach (UploadParams $3 in $1)",
  1723. "{",
  1724. " string TableName = $3.TableName; //表名",
  1725. " string ColumnName = $3.ColumnName; //字段名",
  1726. " string ColumnEnName = $3.ColumnEnName; //字段英文明",
  1727. " string ParamString = $3.ParamString; //参数",
  1728. " string TableEnName = $3.TableEnName; //表英文名",
  1729. "}"
  1730. ]
  1731. },
  1732. "查询上传配置项": {
  1733. "prefix": "ym-db-UploadParams-Exist",
  1734. "body": [
  1735. "bool $1 = db.UploadParams.Any(m => m.Id == $2);",
  1736. ]
  1737. },
  1738. "查询某个上传配置项,并取值": {
  1739. "prefix": "ym-db-UploadParams-FindByPrimaryKey",
  1740. "body": [
  1741. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  1742. "if ($1 != null)",
  1743. "{",
  1744. " string TableName = $1.TableName; //表名",
  1745. " string ColumnName = $1.ColumnName; //字段名",
  1746. " string ColumnEnName = $1.ColumnEnName; //字段英文明",
  1747. " string ParamString = $1.ParamString; //参数",
  1748. " string TableEnName = $1.TableEnName; //表英文名",
  1749. "}"
  1750. ]
  1751. },
  1752. "查询某个上传配置项,并赋值": {
  1753. "prefix": "ym-db-UploadParams-Update",
  1754. "body": [
  1755. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  1756. "if ($1 != null)",
  1757. "{",
  1758. " $1.TableName = $2; //表名",
  1759. " $1.ColumnName = $3; //字段名",
  1760. " $1.ColumnEnName = $4; //字段英文明",
  1761. " $1.ParamString = $5; //参数",
  1762. " $1.TableEnName = $6; //表英文名",
  1763. "}"
  1764. ]
  1765. },
  1766. "获取上传配置项数量": {
  1767. "prefix": "ym-db-UploadParams-FindAndCount",
  1768. "body": [
  1769. "int $1 = db.UploadParams.Count(m => $2);",
  1770. ]
  1771. },
  1772. "添加上传配置项": {
  1773. "prefix": "ym-db-UploadParams-Create",
  1774. "body": [
  1775. "db.UploadParams.Add(new UploadParams()",
  1776. "{",
  1777. " CreateDate = DateTime.Now,",
  1778. " UpdateDate = DateTime.Now,",
  1779. " TableName = $1, //表名",
  1780. " ColumnName = $2, //字段名",
  1781. " ColumnEnName = $3, //字段英文明",
  1782. " ParamString = $4, //参数",
  1783. " TableEnName = $5, //表英文名",
  1784. "});"
  1785. ]
  1786. },"删除某个上传配置项": {
  1787. "prefix": "ym-db-UploadParams-Delete",
  1788. "body": [
  1789. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  1790. "if ($1 != null)",
  1791. "{",
  1792. " db.UploadParams.Remove($1);",
  1793. "}"
  1794. ]
  1795. },
  1796. }