{"id":2515,"date":"2015-05-18T11:06:43","date_gmt":"2015-05-18T02:06:43","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_dbmoto\/?p=2515"},"modified":"2019-04-26T09:34:34","modified_gmt":"2019-04-26T00:34:34","slug":"dbmoto%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e6%9d%a1%e4%bb%b6%e4%bb%98%e3%81%8d%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%82%92%e8%a1%8c%e3%81%86%e3%82%b5","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2515","title":{"rendered":"[DBMoto][\u30b9\u30af\u30ea\u30d7\u30c8]\u6761\u4ef6\u4ed8\u304d\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u30b5\u30f3\u30d7\u30ebVB\u30b9\u30af\u30ea\u30d7\u30c8"},"content":{"rendered":"\n<p>DBMoto\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u6761\u4ef6\u4ed8\u304d\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30fb\u5024\u304c\uff5e\u3092\u6e80\u305f\u3059\u3068\u304d\u306e\u307f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<br>\u30fb\u767b\u9332\u3001\u66f4\u65b0\u3001\u524a\u9664\u306e\u3046\u3061\u4e00\u90e8\u306e\u307f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/p>\n\n\n\n<p>\u4e0b\u8a18\u306f\u767b\u9332\u30fb\u66f4\u65b0\u30fb\u524a\u9664\u6642\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u304c20140711\u672a\u6e80\u306e\u5834\u5408\u306f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3057\u306a\u3044\uff0820140711\u4ee5\u964d\u306e\u307f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u767b\u9332\u6642\u306e\u307f\u30fb\u30fb\u30fbrecSource.OperationType = enmOperationType.Insert<br>\u66f4\u65b0\u6642\u306e\u307f\u30fb\u30fb\u30fbrecSource.OperationType = enmOperationType.Update<br>\u524a\u9664\u6642\u306e\u307f\u30fb\u30fb\u30fbrecSource.OperationType = enmOperationType.Delete<br>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u505c\u6b62\u30fb\u30fb\u30fbAbortRecord = True<br>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7a3c\u50cd\u30fb\u30fb\u30fbAbortRecord = False<\/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    Public Overrides Sub Record_onBeforeMapping( recSource As DBMotoPublic.IRecord, ByRef AbortRecord As Boolean, ByRef DisableReplication As Boolean)\n        &#039; \u30ab\u30e9\u30e0\u540d\u306e\u5909\u6570\n        Dim strField As String\n        &#039; \u767b\u9332\u30fb\u66f4\u65b0\u30fb\u524a\u9664\u6642\n        If (recSource.OperationType = enmOperationType.Insert) Or (recSource.OperationType = enmOperationType.Update) Or (recSource.OperationType = enmOperationType.Delete) Then\n        &#039; DB\u306e\u30ab\u30e9\u30e0\u540d\u3092\u6307\u5b9a\u3057\u3066\u5024\u3092\u53d6\u5f97\n        strField = CType(recSource.GetValueAfter(&quot;Field&quot;).ToString(), Integer)\n        &#039; 20140711 \u672a\u6e80\u306f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b9\u30ad\u30c3\u30d7(Abort=True)\u3059\u308b\n        If (strField &lt; &quot;20140711&quot;) Then\n            AbortRecord = True\n        Else\n            AbortRecord = False\n        End If\n        End If\n    End Sub\n\n    End Class\nEnd Namespace\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>DBMoto\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u6761\u4ef6\u4ed8\u304d\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u53ef\u80fd\u3067\u3059\u3002 \u30fb\u5024\u304c\uff5e\u3092\u6e80\u305f\u3059\u3068\u304d\u306e\u307f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u767b\u9332\u3001\u66f4\u65b0\u3001\u524a\u9664\u306e\u3046\u3061\u4e00\u90e8\u306e\u307f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u4e0b\u8a18\u306f\u767b\u9332\u30fb\u66f4\u65b0\u30fb\u524a\u9664\u6642\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u304c20140711\u672a\u6e80\u306e &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2515\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[85],"class_list":["post-2515","post","type-post","status-publish","format-standard","hentry","category-syniti","tag-85"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/2515","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=2515"}],"version-history":[{"count":4,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/2515\/revisions"}],"predecessor-version":[{"id":4513,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/2515\/revisions\/4513"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=2515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=2515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}