{"id":6310,"date":"2022-12-15T17:27:51","date_gmt":"2022-12-15T08:27:51","guid":{"rendered":"https:\/\/www.climb.co.jp\/blog_dbmoto\/?p=6310"},"modified":"2022-12-15T17:27:51","modified_gmt":"2022-12-15T08:27:51","slug":"api%e3%81%8b%e3%82%89%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e6%9c%80%e6%96%b0%e3%81%ae%e5%ae%9f%e8%a1%8c%e4%bb%b6%e6%95%b0%e3%82%92%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/6310","title":{"rendered":"API\u304b\u3089\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u65b0\u306e\u5b9f\u884c\u4ef6\u6570\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8[C#] [Syniti DR (DBMoto)]"},"content":{"rendered":"\n<p>\u4eca\u56de\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f8b\u3068\u3057\u3066\u3001Syniti\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u53c2\u7167\u53ef\u80fd\u306a\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u65b0\u306e\u5b9f\u884c\u4ef6\u6570\u3092\u53d6\u5f97\u3059\u308bAPI\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>Syniti\u3067\u306fC#\u3084VB\u306e\u5404API\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\u958b\u767a\u74b0\u5883\u306e\u6e96\u5099\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/><a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2491\">API(C#, VB, C++)\u306e\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u624b\u9806<\/a><\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2483\">\u5916\u90e8\u304b\u3089\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b0\u30eb\u30fc\u30d7\u3092\u958b\u59cb\u30fb\u505c\u6b62\u3059\u308b\u30b5\u30f3\u30d7\u30ebC#\u30d7\u30ed\u30b0\u30e9\u30e0<\/a><br \/>\u53c2\u8003\uff1a<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/6298\">API\u304b\u3089\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3092\u5b9f\u884c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8[C#]<\/a><\/p>\n<p>\u5b9f\u884c\u4ef6\u6570\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001Syniti\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308b<strong>\u201cC:\\Program Files\\Syniti\\Data Replication V9\\providers.xml\u201d<\/strong>\u3082<strong>\u201c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\\bin\\Debug\u201d<\/strong>\u306b\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2491\">\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u624b\u9806<\/a>\u3092\u53c2\u7167\uff09\u3002<\/p>\n<p>\u4eca\u56de\u53d6\u5f97\u3059\u308b\u306e\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u4ee5\u4e0b\u3067\u8868\u793a\u3055\u308c\u308b\u7b87\u6240\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2022\/12\/unnamed.png\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"126\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2022\/12\/unnamed.png\" alt=\"\" class=\"wp-image-6311\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2022\/12\/unnamed.png 955w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2022\/12\/unnamed-300x40.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2022\/12\/unnamed-768x101.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/a><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nusing System;\nusing HiTSoftware.DBMoto.Application;\nusing HiTSoftware.DBMoto.ObjectModel;\n\nnamespace APISamples\n{\n    class SampleRefresh\n    {\n        static void Main(string&#x5B;] args)\n        {\n            DBMotoApplication dbmApp = null;\n            IServer dbmServer = null;\n            IMetadata currentMetadata = null;\n\n            try\n            {\n                \/\/ \u521d\u671f\u8a2d\u5b9a\u3001\u30b5\u30fc\u30d0\u63a5\u7d9a\n                dbmApp = DBMotoApplication.Instance;\n                dbmServer = dbmApp.Servers&#x5B;&quot;local&quot;];\n                dbmServer.Connect();\n\n                \/\/ \u30ab\u30ec\u30f3\u30c8\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u30ed\u30fc\u30c9\n                currentMetadata = dbmServer.Metadatas.DefaultMetadata;\n                currentMetadata.Load(true);\n\n                \/\/ \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u3092\u6307\u5b9a\n                IReplication repl = currentMetadata.Replications&#x5B;&quot;\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d&quot;];\n\n                \/\/ \u6700\u7d42\u7d50\u679c\n                Console.WriteLine(repl.ReplLastExit);\n                \/\/ \u5931\u6557\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u6570\n                Console.WriteLine(repl.Forth.FailedRecords);\n                \/\/ \u6210\u529f\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u6570\n                Console.WriteLine(repl.Forth.ProcessedRecords);\n                \/\/ \u7dcf\u30ec\u30b3\u30fc\u30c9\u6570\n                Console.WriteLine(repl.Forth.TotalRecords);\n\n            }\n            catch (Exception e)\n            {\n                Console.WriteLine(e);\n            }\n            finally\n            {\n                if (currentMetadata != null)\n                {\n                    currentMetadata.Unload();\n                }\n\n                if (dbmServer != null)\n                {\n                    dbmServer.Disconnect();\n                }\n\n                if (dbmApp != null)\n                {\n                    dbmApp.Dispose();\n                }\n            }\n        }\n    }\n}\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f8b\u3068\u3057\u3066\u3001Syniti\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u53c2\u7167\u53ef\u80fd\u306a\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u65b0\u306e\u5b9f\u884c\u4ef6\u6570\u3092\u53d6\u5f97\u3059\u308bAPI\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 Syniti\u3067\u306fC#\u3084VB\u306e\u5404API\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u958b &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/6310\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,217],"tags":[85,160,162,317],"class_list":["post-6310","post","type-post","status-publish","format-standard","hentry","category-syniti","category-knowledge-base","tag-85","tag-api","tag-c","tag-syniti"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/6310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/comments?post=6310"}],"version-history":[{"count":5,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/6310\/revisions"}],"predecessor-version":[{"id":6372,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/6310\/revisions\/6372"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=6310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=6310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=6310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}