{"id":4908,"date":"2019-11-27T14:24:59","date_gmt":"2019-11-27T05:24:59","guid":{"rendered":"https:\/\/www.climb.co.jp\/blog_dbmoto\/?p=4908"},"modified":"2019-11-27T14:25:18","modified_gmt":"2019-11-27T05:25:18","slug":"synitidbmoto%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88-%e7%89%b9%e5%ae%9a%e3%82%ab%e3%83%a9%e3%83%a0%e3%81%ae%e5%80%a4%e3%81%8c%e5%a4%89%e6%9b%b4%e3%81%a8%e3%81%aa%e3%81%a3%e3%81%9f%e5%a0%b4","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/4908","title":{"rendered":"[Syniti(DBMoto)][\u30b9\u30af\u30ea\u30d7\u30c8] \u7279\u5b9a\u30ab\u30e9\u30e0\u306e\u5024\u304c\u5909\u66f4\u3068\u306a\u3063\u305f\u5834\u5408\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.climb.co.jp\/soft\/dbmoto\/\"><strong>Syniti Data Replication (DBMoto)<\/strong><\/a>\u3067\u306f\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b8\u30e7\u30d6\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u3042\u308b\u7a0b\u5ea6\u30ec\u30b3\u30fc\u30c9\u306b\u64cd\u4f5c\u3092\u52a0\u3048\u3066\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3067\u304d\u307e\u3059\u3002<br><br>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u3067\u3001\u30bd\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306b\u524a\u9664\u30d5\u30e9\u30b0\u3092\u683c\u7d0d\u3059\u308b\u30ab\u30e9\u30e0\u304c\u5b58\u5728\u3057\u3001\u305d\u306e\u30ab\u30e9\u30e0\u306b\u5bfe\u3057\u3066\u524a\u9664\u30d5\u30e9\u30b0\u304c\u305f\u3063\u305f\u5834\u5408\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>&#8220;DFLUG&#8221; \u3068\u3044\u3046\u30ab\u30e9\u30e0\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u5024\u304c1\u3068Update\u3055\u308c\u305f\u5834\u5408\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: vb; title: ; notranslate\" title=\"\">\nImports System\nImports System.Data\nImports Microsoft.VisualBasic\nImports DBMotoPublic\nImports DBMotoScript\nImports DBRS.GlobalScript\n\nNamespace DBRS\n    Public Class ReplicationScript : Inherits IReplicationScript\n\t\tPublic Overrides Sub Record_onAfterMapping( recSource As DBMotoPublic.IRecord,  recTarget As DBMotoPublic.IRecord, ByRef AbortRecord As Boolean, ByRef DisableReplication As Boolean)\n\t&#039; \u30bd\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u30ab\u30e9\u30e0\u540d\u306e\u5909\u6570\n        Dim strField As String\n        &#039; \u30bd\u30fc\u30b9\u5074\u3078Update\u30af\u30a8\u30ea\u304c\u5b9f\u884c\u3055\u308c\u305f\u6642\n        If (recSource.OperationType = enmOperationType.Update) Then\n        &#039; &quot;DFLUG&quot;\u3068\u3044\u3046\u30ab\u30e9\u30e0\u540d\u3092\u6307\u5b9a\u3057\u3001\u5024\u3092\u53d6\u5f97\n        strField = CType(recSource.GetValueAfter(&quot;DFLUG&quot;).ToString(), Integer)\n        End If\n        &#039; &quot;DFLUG&quot;\u306e\u5024\u304c&quot;1&quot;\u3060\u3063\u305f\u5834\u5408\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30ec\u30b3\u30fc\u30c9\u306bDelete\u30af\u30a8\u30ea\u3092\u767a\u884c\n        If (strField = &quot;1&quot;) Then\n            recTarget.OperationType = enmOperationType.Delete\n        End If\n\t\tEnd Sub\n\n    End Class\nEnd Namespace\n\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syniti Data Replication (DBMoto)\u3067\u306f\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b8\u30e7\u30d6\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u3042\u308b\u7a0b\u5ea6\u30ec\u30b3\u30fc\u30c9\u306b\u64cd\u4f5c\u3092\u52a0\u3048\u3066\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3067\u304d\u307e\u3059\u3002 \u4f8b\u3048\u3070 &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/4908\">\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],"tags":[],"class_list":["post-4908","post","type-post","status-publish","format-standard","hentry","category-syniti"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/4908","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=4908"}],"version-history":[{"count":4,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/4908\/revisions"}],"predecessor-version":[{"id":4912,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/4908\/revisions\/4912"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=4908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=4908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=4908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}