{"id":319,"date":"2010-11-15T03:29:44","date_gmt":"2010-11-14T18:29:44","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_dbmoto\/?p=319"},"modified":"2010-11-15T03:29:44","modified_gmt":"2010-11-14T18:29:44","slug":"%e5%a4%96%e9%83%a8dll%ef%bc%88com%ef%bc%89%e3%81%ae%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e3%80%90%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/319","title":{"rendered":"\u5916\u90e8DLL\uff08COM\uff09\u306e\u4f7f\u7528\u65b9\u6cd5\u3010\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30ebDBMoto\u3011"},"content":{"rendered":"<p>DBMoto\u3067\u306f\u8907\u96d1\u306a\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306bVB\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u304c\u3001<br \/>\u4ed6\u306b\u3082\u30e6\u30fc\u30b6\u69d8\u304c\u4f5c\u6210\u3057\u305f\u5916\u90e8DLL\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u6642\u306b\u30ec\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"font-size: large;\">\u25cf\u5916\u90e8DLL\u306e\u6e96\u5099<\/span><\/p>\n<p>Visual Studio\u7b49\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306aDLL\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u30b5\u30f3\u30d7\u30eb1\uff08\u5c0f\u6587\u5b57\u3092\u5927\u6587\u5b57\u306b\u3059\u308b\u95a2\u6570\u3001DBMoto&rArr;DBMOTO\u306a\u3069\uff09<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/a7579fbbaf4d681608d733b27cc9b4cc.png\" border=\"0\" alt=\"\" width=\"400\" \/><\/p>\n<p>\u203b\u30b5\u30f3\u30d7\u30eb2\uff08\u5927\u6587\u5b57\u3092\u5c0f\u6587\u5b57\u306b\u3059\u308b\u95a2\u6570\u3001DBMoto&rArr;dbmoto\u306a\u3069\uff09<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/26909235840defb77a162910b6592fa0.png\" border=\"0\" alt=\"\" width=\"400\" \/><\/p>\n<p>\u6e96\u5099\u3057\u305fDLL\u306fDBMoto\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<br \/>\u203bDBMoto\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u5916\u3067\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"font-size: large;\">\u25cfDBMoto\u5074\u306e\u6e96\u5099<\/span><\/p>\n<p>\u4e88\u3081\u30bd\u30fc\u30b9\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u306f\u6e08\u307e\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001Replication Properties\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/69db8e2490216ebb9bf77753832d5112.png\" border=\"0\" alt=\"\" width=\"250\" \/><\/p>\n<p>Use Script\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001Script\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/0b900d5265e5272dc7b86ae945ade65b.png\" border=\"0\" alt=\"\" width=\"320\" \/><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u753b\u9762\u304c\u958b\u304d\u307e\u3059\u306e\u3067\u3001\u4e0b\u8a18\u8d64\u67a0\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/c37a2237d767f5b4da80745ff35db1e2.png\" border=\"0\" alt=\"\" width=\"250\" \/><\/p>\n<p>References\u753b\u9762\u304c\u958b\u304d\u307e\u3059\u306e\u3067\u3001\u914d\u7f6e\u3057\u305fDLL\u306e\u30d1\u30b9\u3092\u5165\u529b\u3057\u3001Add\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/e249ae11c67c2ab08da8b581fc225f99.png\" border=\"0\" alt=\"\" width=\"250\" \/><\/p>\n<p>\u4eca\u56de\u306f\u6e96\u5099\u3057\u305f2\u3064\u306eDLL\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/f1653940f8a94d1fc809a2f73e3aa810.png\" border=\"0\" alt=\"\" width=\"250\" \/><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u753b\u9762\u306b\u3066\u3001\u4e0b\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #0000ff;\">Imports System<br \/>Imports System.Data<br \/>Imports Microsoft.VisualBasic<br \/>Imports DBMotoPublic<br \/>Imports DBMotoScript<br \/>Imports DBRS.GlobalScript<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Namespace DBRS<br \/>&nbsp;&nbsp;&nbsp; Public Class ReplicationScript : Inherits IReplicationScript<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Public Overrides Sub Record_onAfterMapping(recSource As IRecord, recTarget As IRecord, ByRef AbortRecord As Boolean)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If recSource.OperationType = enmOperationType.Insert Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Not recTarget.GetValueAfter(2) Is Nothing Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recTarget.SetValueAfter(2, ClimbDBMoto.Class1.getUpperCase(recTarget.GetValueAfter(2).ToString))<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End if<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Not recTarget.GetValueAfter(1) Is Nothing Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recTarget.SetValueAfter(1, ClassLibrary1.Class1.getLowerCase(recTarget.GetValueAfter(1).ToString))<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End if<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Sub<br \/>&nbsp;&nbsp;&nbsp; End Class<br \/>End Namespace<\/span><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u753b\u9762\u306b\u3066\u3001\u4e0b\u8a18\u8d64\u67a0\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/c331e51532b40664561ad9df51644b24.png\" border=\"0\" alt=\"\" width=\"250\" \/><\/p>\n<p>\u25cf\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c<\/p>\n<p>\u5b9f\u969b\u306b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\uff09\u3092\u5b9f\u884c\u3057\u3001DLL\u306e\u95a2\u6570\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u30bd\u30fc\u30b9\u5074\u306f\u4e0b\u8a18\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u3059\u3002<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/aae9be89bea3bcf90fc87690717e6c3a.png\" border=\"0\" alt=\"\" width=\"400\" \/><\/p>\n<p>\u203b\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\uff09\u5b9f\u884c\u5f8c<br \/><img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2011\/10\/5089abd106e0b4336bd26697e4bb5f2c.png\" border=\"0\" alt=\"\" width=\"400\" \/><\/p>\n<p>\u8d64\u67a0\u306e\u30ec\u30b3\u30fc\u30c9\u306f\u3001\u5927\u6587\u5b57\u304c\u5168\u3066\u5c0f\u6587\u5b57\u306b\u3001\u9752\u67a0\u306e\u30ec\u30b3\u30fc\u30c9\u306f\u5c0f\u6587\u5b57\u304c\u5168\u3066\u5927\u6587\u5b57\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001<br \/>\u6b63\u3057\u304fDLL\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3088\u304f\u4f7f\u7528\u3059\u308b\u95a2\u6570\u3092DLL\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001DBMoto\u304b\u3089\u7c21\u5358\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8ff0\u3059\u308b\u3060\u3051\u3067<br \/>\u8907\u96d1\u306a\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u73fe\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5358\u7d14\u306b\u5927\u6587\u5b57\u3084\u5c0f\u6587\u5b57\u306b\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u304c\u3001<br \/>\u4ed6\u306b\u3082\u3044\u308d\u3044\u308d\u306a\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u306e\u53ef\u80fd\u6027\u306f\u7121\u9650\u5927\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DBMoto\u3067\u306f\u8907\u96d1\u306a\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306bVB\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u304c\u3001\u4ed6\u306b\u3082\u30e6\u30fc\u30b6\u69d8\u304c\u4f5c\u6210\u3057\u305f\u5916\u90e8DLL\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002 \u3053\u308c\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u6642\u306b\u30ec\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3059\u308b\u3053 &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/319\">\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":[],"class_list":["post-319","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\/319","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=319"}],"version-history":[{"count":0,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}