﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Using DataBaseMigrator class in a web form</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 08 Apr 2026 04:42:54 GMT</lastBuildDate><ttl>20</ttl><item><title>Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13497.aspx</link><description>How might we do this?&lt;br&gt;
&lt;br&gt;
The third parameter is of type ISynchronizeInvoke, in the samples that I used to test it was set to ME which equated to the form, this doesn't work in a web form. I don't need it to do more then one database at a time, just apply a DDT package to create a single new database from the metadata via a web form. I am OK with using a desktop app to update multiple databases later.&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 17 Jan 2008 09:19:25 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13516.aspx</link><description>Hehe, glad it worked for you :)</description><pubDate>Thu, 17 Jan 2008 09:19:25 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13515.aspx</link><description>Ben you sir, ARE THE MAN!!!!&lt;br&gt;
&lt;br&gt;
/bow&lt;br&gt;
&lt;br&gt;
Thanks a lot that worked great.&lt;br&gt;
&lt;br&gt;
Keith</description><pubDate>Thu, 17 Jan 2008 09:15:06 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13513.aspx</link><description>I tried NOTHING yesterday (good to know I'm on the same page here) and it does error. I will try this thanks Ben.</description><pubDate>Thu, 17 Jan 2008 09:11:05 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13510.aspx</link><description>You might be able to pass Nothing as the parameter.&amp;nbsp; If that errors out (with a NullReference exception), then just create your own class that implements ISynchronizeInvoke.&amp;nbsp; Simply return True out of the InvokeRequired property, and in the Invoke() method, simply call DynamicInvoke on the method.&amp;nbsp; We don't use the Begin- or EndInvoke:&lt;/P&gt;&lt;P&gt;Public Class CustomSynchronizeInvoke&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Implements System.ComponentModel.ISynchronizeInvoke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function BeginInvoke(ByVal method As System.Delegate, ByVal args() As Object) As System.IAsyncResult Implements System.ComponentModel.ISynchronizeInvoke.BeginInvoke&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw New NotSupportedException()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function EndInvoke(ByVal result As System.IAsyncResult) As Object Implements System.ComponentModel.ISynchronizeInvoke.EndInvoke&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw New NotSupportedException()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function Invoke(ByVal method As System.Delegate, ByVal args() As Object) As Object Implements System.ComponentModel.ISynchronizeInvoke.Invoke&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return method.DynamicInvoke(args)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public ReadOnly Property InvokeRequired() As Boolean Implements System.ComponentModel.ISynchronizeInvoke.InvokeRequired&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return True&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property&lt;/P&gt;&lt;P&gt;End Class&lt;BR&gt;</description><pubDate>Thu, 17 Jan 2008 09:06:41 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13509.aspx</link><description>A decent amount of looking seems to indicate that web controls do no support invoke. Hopefully I am wrong and you can suggest one, otherwise I am open for suggestions as to a workaround/fix.</description><pubDate>Thu, 17 Jan 2008 08:22:22 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13504.aspx</link><description>I did try that with a couple different control types, each one errored. I will try it again in the AM and post my results. &lt;br&gt;
&lt;br&gt;
Thanks.</description><pubDate>Wed, 16 Jan 2008 19:50:53 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Using DataBaseMigrator class in a web form</title><link>http://forum.strataframe.net/FindPost13502.aspx</link><description>You can just create a control and use that as your Sync object.&amp;nbsp; Obviously a web page is not going to have a WinForms object to Sync off of, so just create a Control or an object that supports Invoke and pass it over.&amp;nbsp; This will at least prevent any errors from appearing.&amp;nbsp; Give that a whirl and if that doesn't work then I will try to create a quick sample and play with a workaround. :)</description><pubDate>Wed, 16 Jan 2008 18:55:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>