{"id":661096,"date":"2025-11-24T05:13:01","date_gmt":"2025-11-24T04:13:01","guid":{"rendered":"https:\/\/blog.jetbrains.com\/dotnet\/2025\/11\/17\/database-features-in-rider\/"},"modified":"2025-11-24T05:13:25","modified_gmt":"2025-11-24T04:13:25","slug":"database-features-in-rider","status":"publish","type":"dotnet","link":"https:\/\/blog.jetbrains.com\/zh-hans\/dotnet\/2025\/11\/24\/database-features-in-rider\/","title":{"rendered":"Rider \u4e3a\u6570\u636e\u5e93\u64cd\u4f5c\u63d0\u4f9b\u5f3a\u5927\u652f\u6301\u2014\u2014\u7531 DataGrip \u9a71\u52a8\uff01"},"content":{"rendered":"\n<p>Rider \u5728 IDE \u5185\u90e8\u63d0\u4f9b\u4e86<strong>\u5f3a\u5927\u7684\u6570\u636e\u5e93\u5904\u7406\u652f\u6301<\/strong>\uff0c\u800c\u8fd9\u4e00\u5207\u90fd\u5f97\u76ca\u4e8e <a href=\"https:\/\/www.jetbrains.com.cn\/datagrip\" target=\"_blank\" rel=\"noopener\">DataGrip<\/a> \u7684\u5f3a\u529b\u52a0\u6301\uff01Rider \u548c DataGrip \u5141\u8bb8\u4f60\u7ba1\u7406\u5404\u7c7b\u6570\u636e\u5e93\u7cfb\u7edf\u5e76\u4e0e\u5176\u8fdb\u884c\u4ea4\u4e92\uff0c\u4ece\u800c\u8ba9\u5f00\u53d1\u6d41\u7a0b\u53d8\u5f97\u66f4\u52a0\u987a\u7545\u3002\u5bf9\u4e8e\u9700\u8981\u9891\u7e41\u5904\u7406\u6570\u636e\u7684\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u8fd9\u79cd\u96c6\u6210\u6781\u5927\u5730\u63d0\u5347\u4e86\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6570\u636e\u5e93\u9879\u76ee\u4e0e\u8fde\u63a5<\/h2>\n\n\n\n<p>\u5728 Rider \u7684\u5f00\u53d1\u9879\u76ee\u4e2d\u8fde\u63a5\u548c\u4f7f\u7528\u6570\u636e\u5e93\uff0c\u8fd9\u4e00\u529f\u80fd\u7531\u6765\u5df2\u4e45\u3002\u4f46\u5982\u679c\u4f60\u60f3<strong>\u4e13\u6ce8\u4e8e\u6570\u636e\u672c\u8eab<\/strong>\u5462\uff1fRider \u73b0\u5728\u6b63\u5f0f\u652f\u6301<strong>\u6570\u636e\u5e93\u9879\u76ee<\/strong>\uff08Database Projects, .sqlproj\uff09\u4e86\u3002<\/p>\n\n\n\n<p>\u53ea\u9700\u901a\u8fc7 <strong>File -&gt; New Solution | Database<\/strong> \u6253\u5f00\u201c<strong>New Solution<\/strong>\u201d\u5bf9\u8bdd\u6846\u3002\u9009\u62e9 <strong>Database<\/strong>\uff0c\u4f60\u53ef\u4ee5\u5728\u6b64\u81ea\u5b9a\u4e49\u521d\u59cb\u7684\u76ee\u6807\u6570\u636e\u5e93\u73af\u5883\u3002\u9879\u76ee\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u4f60\u8fd8\u53ef\u4ee5\u968f\u65f6\u6dfb\u52a0\u5176\u4ed6\u7684\u6570\u636e\u5e93\u73af\u5883\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"2252\" height=\"1731\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/10\/new-db-project.png\" alt=\"Rider's New Solution dialog has support for database projects\" class=\"wp-image-653438\" style=\"width:800px\"\/><\/figure>\n\n\n\n<p>\u4e00\u65e6 Rider \u521b\u5efa\u597d\u9879\u76ee\uff0c\u4f60\u4f1a\u5728\u719f\u6089\u7684 <strong>Solution<\/strong> \u5de5\u5177\u7a97\u53e3\u4e2d\u770b\u5230\u4e00\u4e2a\u7a7a\u89e3\u51b3\u65b9\u6848\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e2a\u7528\u4e8e\u67e5\u770b\u548c\u521b\u5efa SQLCMD \u53d8\u91cf\u7684\u8282\u70b9\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"1226\" height=\"1118\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/add-sql-cmd-variables.png\" alt=\"Add a SQLCMD variable\" class=\"wp-image-659634\" style=\"width:600px\"\/><\/figure>\n\n\n\n<p>\u5728\u6570\u636e\u5e93\u9879\u76ee\u4e2d\u8fde\u63a5\u6570\u636e\u5e93\u7684\u65b9\u5f0f\uff0c\u4e0e\u5176\u4ed6\u7c7b\u578b\u7684\u9879\u76ee\u5b8c\u5168\u4e00\u81f4\u3002\u4f7f\u7528 <strong>Databases<\/strong> \u5de5\u5177\u7a97\u53e3\u5373\u53ef\u8fde\u63a5\u5230\u4f60\u9009\u62e9\u7684\u6570\u636e\u5e93\u3002<strong>\u4e1a\u754c\u4e3b\u6d41\u7684\u6570\u636e\u5e93\u8fd9\u91cc\u5e94\u6709\u5c3d\u6709<\/strong>\u2014\u2014PostgreSQL\u3001MySQL\u3001SQL Server\u3001Oracle\u3001SQLite \u7b49\u7b49\u3002\u5f53\u7136\uff0c\u522b\u5fd8\u4e86 NoSQL\uff01<strong>Rider \u5bf9 NoSQL \u4e5f\u6709\u5e7f\u6cdb\u7684\u652f\u6301<\/strong>\uff0c\u5305\u62ec MongoDB\u3001Apache Cassandra\u3001Redis\u3001DocumentDB\u3001Couchbase Query \u7b49\u3002\u6839\u636e\u4f60\u7684\u4e1a\u52a1\u573a\u666f\u9700\u6c42\uff0c\u60f3\u8fde\u591a\u5c11\u5c31\u8fde\u591a\u5c11\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"1312\" height=\"1078\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/10\/connect-to-db.gif\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/10\/connect-to-db.png\" alt=\"Gif showing how to connect to a data source\" class=\"wp-image-653461\" style=\"width:800px\"\/><\/figure>\n\n\n\n<p>\u8fde\u63a5\u6210\u529f\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u901a\u8fc7\u53ef\u89c6\u5316\u754c\u9762\u6216 SQL \u8bed\u53e5\u6765\u7ba1\u7406\u548c\u521b\u5efa\u6570\u636e\u5e93\u5bf9\u8c61\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7ba1\u7406\u6570\u636e\u5e93\u5bf9\u8c61<\/h2>\n\n\n\n<p>Rider \u63d0\u4f9b\u4e86\u76f4\u89c2\u7684\u754c\u9762\uff0c\u8ba9\u4f60\u8f7b\u677e\u7ba1\u7406\u6570\u636e\u5e93\u5bf9\u8c61\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7 <strong>Database<\/strong> \u5de5\u5177\u7a97\u53e3\uff0c\u53ef\u89c6\u5316\u5730\u521b\u5efa\u3001\u4fee\u6539\u548c\u5220\u9664\u8868\u3001\u89c6\u56fe\u3001\u5b58\u50a8\u8fc7\u7a0b\u4ee5\u53ca\u5176\u4ed6\u67b6\u6784\u5143\u7d20\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"1902\" height=\"1483\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/10\/modify-table.png\" alt=\"Rider's table modification dialog\" class=\"wp-image-653484\" style=\"width:800px\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u521b\u5efa\u5e76\u8fd0\u884c SQL \u811a\u672c<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u66f4\u4e60\u60ef\u624b\u5199\u4ee3\u7801\uff0c\u5b8c\u5168\u53ef\u4ee5\u81ea\u5df1\u7f16\u5199 SQL\uff0c\u751a\u81f3\u5229\u7528\u6211\u4eec\u5185\u7f6e\u7684 <strong>AI Assistant<\/strong> \u6765\u751f\u6210\u67e5\u8be2\u8bed\u53e5\u3002\u5728\u67e5\u8be2\u7f16\u8f91\u5668\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f53\u9a8c<strong>\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u4ee5\u53ca\u67b6\u6784\u53d8\u66f4\u7684\u5373\u65f6\u53cd\u9988\u7b49<\/strong>\u529f\u80fd\u3002\u8fd9\u79cd\u53ef\u89c6\u5316\u65b9\u6cd5\uff0c\u914d\u5408\u76f4\u63a5\u6267\u884c SQL \u811a\u672c\u7684\u80fd\u529b\uff0c\u5927\u5927\u7b80\u5316\u4e86\u7ef4\u62a4\u548c\u8fed\u4ee3\u6570\u636e\u5e93\u67b6\u6784\u7684\u6d41\u7a0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"2050\" height=\"1470\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/10\/create-run-sql.png\" alt=\"Editor and a stored proc in it\" class=\"wp-image-653495\" style=\"width:800px\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5c0f\u7ed3<\/h2>\n\n\n\n<p><strong>JetBrains Rider \u96c6\u6210\u7684\u6570\u636e\u5e93\u5de5\u5177\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u9762\u7684\u73af\u5883<\/strong>\uff0c\u7528\u4e8e\u4ea4\u4e92\u548c\u7ba1\u7406\u5404\u79cd\u6570\u636e\u5e93\u7cfb\u7edf\u3002\u901a\u8fc7\u5c06\u6570\u636e\u5e93\u64cd\u4f5c\u76f4\u63a5\u6574\u5408\u8fdb IDE\uff0cRider \u663e\u8457\u63d0\u5347\u4e86\u751f\u4ea7\u529b\uff0c\u5e76\u7b80\u5316\u4e86\u6570\u636e\u9a71\u52a8\u578b\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u4e0e\u8c03\u8bd5\u5de5\u4f5c\u3002<a href=\"https:\/\/www.jetbrains.com.cn\/rider\/\" target=\"_blank\" rel=\"noopener\">\u7acb\u5373\u4e0b\u8f7d\u4f53\u9a8c Rider \u5427\uff01<\/a>\u73b0\u5728\u8fd8\u652f\u6301\u975e\u5546\u7528\u514d\u8d39\uff01<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u535a\u6587\u82f1\u6587\u539f\u4f5c\u8005\uff1a<br><\/p>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2023\/09\/rachel-profile-sm-200x200.png\" width=\"200\" height=\"200\" alt=\"Rachel Appel\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                            <h4>Rachel Appel<\/h4>\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":901,"featured_media":661098,"comment_status":"closed","ping_status":"closed","template":"","categories":[4992],"tags":[6920,325,7143,1978,201],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/661096"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/dotnet"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/901"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=661096"}],"version-history":[{"count":3,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/661096\/revisions"}],"predecessor-version":[{"id":661111,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/661096\/revisions\/661111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/661098"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=661096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=661096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=661096"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=661096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}