<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mindscape Blog &#187; Beta</title>
	<atom:link href="http://www.mindscapehq.com/blog/index.php/category/beta/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindscapehq.com/blog</link>
	<description>The official blog of Mindscape</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:48:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>LightSpeed.MetaData, coming in LightSpeed 4</title>
		<link>http://www.mindscapehq.com/blog/index.php/2011/04/10/lightspeed-metadata-coming-in-lightspeed-4/</link>
		<comments>http://www.mindscapehq.com/blog/index.php/2011/04/10/lightspeed-metadata-coming-in-lightspeed-4/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 03:43:09 +0000</pubDate>
		<dc:creator>John-Daniel Trask</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[LightSpeed]]></category>
		<category><![CDATA[MetaData]]></category>

		<guid isPermaLink="false">http://www.mindscapehq.com/blog/?p=3049</guid>
		<description><![CDATA[I&#8217;m pleased to announce that we&#8217;ve just shipped our last functional enhancement release for the LightSpeed 4.0 release and it includes the last major feature addition: LightSpeed.MetaData. Blimmy, what&#8217;s this all about then? Over the years we&#8217;ve had consistent requests from our users that they&#8217;d like to be able to access the LightSpeed Meta Model. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/04/LightSpeedMetaData.jpg" alt="LightSpeed MetaData is crazy delicious" title="LightSpeed MetaData is crazy delicious" width="729" height="136" class="alignnone size-full wp-image-3050" /></p>
<p>I&#8217;m pleased to announce that we&#8217;ve just shipped our last functional enhancement release for the LightSpeed 4.0 release and it includes the last major feature addition: LightSpeed.MetaData.</p>
<p><strong>Blimmy, what&#8217;s this all about then?</strong></p>
<p>Over the years we&#8217;ve had consistent requests from our users that they&#8217;d like to be able to access the LightSpeed Meta Model. This gives developers the power to access the entity models, field models and other interesting stuff that we keep tucked away. Typically, keeping things tucked away is a good thing as it keeps LightSpeed easy to learn and not too intimidating for the common use cases which is why we&#8217;re implementing this in a different assembly.</p>
<p>With LightSpeed 4 we will be shipping a new assembly: Mindscape.LightSpeed.MetaData.dll </p>
<p>From this library developers can use handy extension methods to pull out information about an Entity. This means three things:</p>
<ul>
<li>No need to write messy reflection code to access our internal model</li>
<li>No need to worry that we might change something internally and break your code</li>
<li>You now have even more ways of doing crazy cool stuff with LightSpeed.</li>
</ul>
<p><strong>What does the API look like?</strong></p>
<p>Currently the API is nice and simple. We have implemented the MetaData capabilities through Extension Methods so the first thing you&#8217;ll need to do is add a reference to Mindscape.LightSpeed.MetaData.dll and then add a using statement:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Mindscape.LightSpeed.MetaData</span><span style="color: #008000;">;</span></pre></div></div>

<p>Once that&#8217;s done you&#8217;ll have an extension method on any entity:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">      Car car <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Car<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
      EntityInfo entityInfo <span style="color: #008000;">=</span> car<span style="color: #008000;">.</span><span style="color: #0000FF;">EntityInfo</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

<p>Easy as that. From the EntityInfo object you can access information such as if SoftDelete is enabled, if Versioning is enabled, if CascadeDeletes are enabled and more. The interesting thing is that you can also walk the fields off an entity and inspect their information such as type, if they&#8217;re associations, read only status etc.</p>
<p><strong>What would I use this for?</strong></p>
<p>It really depends on your situation if you&#8217;d find a use for this capability. For example, in LightSpeed 4 we will be shipping an EntityModelBinder for ASP.NET MVC that is built using the LightSpeed.MetaData library so that we don&#8217;t need to rely on ugly reflection. We also have developers who want to do perform generic cloning operations who would find this useful. This is why we&#8217;re excited to see what people do with LightSpeed.MetaData &#8211; the only limit is on your imagination.</p>
<p><strong>Right, so how do I get my hands on this?</strong></p>
<p>LightSpeed 4 Beta is available to all LightSpeed customers who have active subscriptions right now. You can <a href="http://www.mindscapehq.com/store/myaccount">download it from your store account</a>.</p>
<p>If you&#8217;re waiting for LightSpeed 4 to ship before purchasing then don&#8217;t &#8211; <a href="http://www.mindscapehq.com/store/?p=LightSpeed">grab a LightSpeed 3.11 license</a> and you&#8217;ll get updated LightSpeed 4.0 release on RTM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindscapehq.com/blog/index.php/2011/04/10/lightspeed-metadata-coming-in-lightspeed-4/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WPF Elements 4.0 beta is out now!</title>
		<link>http://www.mindscapehq.com/blog/index.php/2011/01/18/wpf-elements-4-0-beta-is-out-now/</link>
		<comments>http://www.mindscapehq.com/blog/index.php/2011/01/18/wpf-elements-4-0-beta-is-out-now/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 23:49:40 +0000</pubDate>
		<dc:creator>John-Daniel Trask</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[WPF Elements]]></category>
		<category><![CDATA[WPF Property Grid]]></category>
		<category><![CDATA[Charting]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.mindscapehq.com/blog/?p=2560</guid>
		<description><![CDATA[WPF Elements 4.0 beta is out! The key focus for WPF Elements 4.0 was to include a high performance suite of charting controls to add to the existing 30+ controls. We delivered a fantastic range of charting controls for Silverlight in 2010 and had great feedback that developers wanted to see the same offered in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WPF Elements 4.0 beta is out!</strong></p>
<p>The key focus for WPF Elements 4.0 was to include a high performance suite of charting controls to add to the existing 30+ controls. We delivered a fantastic range of <a href="http://www.mindscapehq.com/blog/index.php/2010/09/28/new-silverlight-charting-capabilities/">charting controls for Silverlight in 2010</a> and had great feedback that developers wanted to see the same offered in WPF Elements. </p>
<p><strong>Chart types included in WPF Elements 4.0</strong></p>
<ul>
<li>Bar</li>
<li>Line</li>
<li>Area</li>
<li>Pie</li>
<li>Doughnut</li>
<li>Bubble</li>
<li>Scatter</li>
<li>Spline</li>
<li>Spline area</li>
<li>Stacked bar</li>
<li>Stacked line</li>
<li>Stacked area</li>
<li>Stacked spline area</li>
</ul>
<p>Of course new releases aren&#8217;t just about new controls &#8211; it&#8217;s also about improving the existing controls. We&#8217;ve added several new features to the scheduler, property grid, outlook bar and drop down edit box. New disabled visual states were added to the Office style themes as well. Bug fixes have been rolled up from the WPF Elements 3.0 nightly builds also.</p>
<p>This is on top of all the existing controls in the suite such as the <a href="http://www.mindscapehq.com/products/wpfelements/controls/wpf-property-grid">WPF Property Grid</a>, <a href="http://www.mindscapehq.com/products/wpfelements/controls/wpf-scheduler">WPF Scheduler</a>, <a href="http://www.mindscapehq.com/products/wpfelements/controls/wpf-coverflow-control">Coverflow</a>, <a href="http://www.mindscapehq.com/products/wpfelements/controls/wpf-multicolumn-tree-view">Multicolumn TreeView</a> and <a href="http://www.mindscapehq.com/products/wpfelements">many many more</a>.</p>
<p>Of course with the power of WPF you&#8217;re able to customise the look and feel of these charting controls (and in fact any control in WPF Elements) to suit your application&#8217;s design aesthetic. WPF Elements includes 5 themes to help you start out with a great look and feel.</p>
<p><strong>Give it a test drive!</strong></p>
<p>Currently all existing WPF Elements customers have access to the beta install bits <a href="http://www.mindscapehq.com/store/myaccount">from their account</a> (You should see &#8220;WPF Elements 4.0 &#8211; Beta&#8221;). Betas are currently only available to customers however we expect to be shipping the final version very soon. If you&#8217;re not yet a customer but are working with WPF you should <a href="http://www.mindscapehq.com/products/wpfelements">have a look at WPF Elements 3</a>.</p>
<p><strong>Screenshots</strong></p>
<p>Here&#8217;s a taste of the charts that are included. They&#8217;re from the development team and include examples of custom styles. The screen shots are just a sample of what is possible and obviously don&#8217;t show off how fast and interactive the charts can be.</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/CustomChartStyle.png" alt="Custom WPF Chart Style with a stacked bar chart" title="Custom WPF Chart Style with a stacked bar chart" width="718" height="354" class="alignnone size-full wp-image-2561" /><br />
A custom chart style for the stacked bar chart</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/CustomAxisLabels.png" alt="WPF Bar chart with custom axis labels" title="WPF Bar chart with custom axis labels" width="718" height="328" class="alignnone size-full wp-image-2562" /><br />
Bar chart with custom axis labels</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/CylindarChart.png" alt="WPF Cylinder Chart" title="WPF Cylinder Chart" width="718" height="319" class="alignnone size-full wp-image-2563" /><br />
WPF cylinder chart in action</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/DataDependantStyle.png" alt="WPF bar chart with data dependant styles" title="WPF bar chart with data dependant styles" width="718" height="321" class="alignnone size-full wp-image-2564" /><br />
WPF bar chart with data dependant styles &#8211; notice how the bars change colour depending on their value</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/SplineChart.png" alt="WPF spline chart" title="WPF spline chart" width="718" height="324" class="alignnone size-full wp-image-2565" /><br />
WPF spline chart &#8211; smooth curves</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/StackedAreaChart.png" alt="WPF Stacked Area Chart" title="WPF Stacked Area Chart" width="718" height="394" class="alignnone size-full wp-image-2566" /><br />
WPF stacked area charts</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/StackedSplineAreaChart.png" alt="WPF Stacked Spline chart" title="WPF Stacked Spline chart" width="718" height="398" class="alignnone size-full wp-image-2567" /><br />
Of course you can stack spline charts as well.</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/LogarithmicYAxis.png" alt="Logarithmic YAxis WPF chart" title="Logarithmic YAxis WPF chart" width="718" height="327" class="alignnone size-full wp-image-2568" /><br />
Axis scaling is possible, here we have a logarithmic Y axis scale</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/DoughnutChart.png" alt="WPF Doughnut Chart" title="WPF Doughnut Chart" width="718" height="354" class="alignnone size-full wp-image-2569" /><br />
Doughnut charts &#8211; both delicious and useful for showing your data</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/PartialPieChart.png" alt="WPF Pie Chart with partial display" title="WPF Pie Chart with partial display" width="718" height="328" class="alignnone size-full wp-image-2570" /><br />
The classic Pie Chart for WPF. Notice that partial pie rendering is possible, in this case one segment is not displayed.</p>
<p><img src="http://cdn.mindscapehq.com/blog/wp-content/uploads/2011/01/HorizontalStackedBarChart.png" alt="Horizontal Stacked Bar Chart" title="Horizontal Stacked Bar Chart" width="718" height="339" class="alignnone size-full wp-image-2571" /><br />
Data does not need to be displayed vertically. Many different options exist in all charts for controlling the display of the chart data.</p>
<p><strong>We&#8217;d love your feedback</strong></p>
<p>As with everything we do, we love to hear our users feedback. Either post a comment below or fire something into our WPF Elements forum. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindscapehq.com/blog/index.php/2011/01/18/wpf-elements-4-0-beta-is-out-now/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Introducing Visual Tools for SharePoint</title>
		<link>http://www.mindscapehq.com/blog/index.php/2010/04/22/introducing-visual-tools-for-sharepoint/</link>
		<comments>http://www.mindscapehq.com/blog/index.php/2010/04/22/introducing-visual-tools-for-sharepoint/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 23:42:47 +0000</pubDate>
		<dc:creator>John-Daniel Trask</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Visual Tools for SharePoint]]></category>

		<guid isPermaLink="false">http://www.mindscape.co.nz/blog/?p=1381</guid>
		<description><![CDATA[With Office 2010 and SharePoint 2010 being released today to MSDN subscribers it&#8217;s time to take the wraps off our latest creation: Visual Tools for SharePoint. Stunning name, very Microsoft inspired! ;-) Get Visual Tools for Sharepoint FREE The first 50 people to create accounts with Mindscape (click here to register) and then email their [...]]]></description>
			<content:encoded><![CDATA[<p>With Office 2010 and SharePoint 2010 being released today to MSDN subscribers it&#8217;s time to take the wraps off our latest creation: Visual Tools for SharePoint. Stunning name, very Microsoft inspired! ;-)</p>
<p><a href="http://www.mindscape.co.nz/blog/wp-content/uploads/2010/04/VisualToolsForSharepoint.png"><img src="http://www.mindscape.co.nz/blog/wp-content/uploads/2010/04/VisualToolsForSharepoint.png" alt="Visual Studio 2010 Visual Tools for Sharepoint" title="Visual Studio 2010 Visual Tools for Sharepoint" width="562" height="114" class="alignnone size-full wp-image-1389" /></a></p>
<p><strong>Get Visual Tools for Sharepoint FREE</strong></p>
<p>The first 50 people to create accounts with Mindscape (<a href="http://www.mindscape.co.nz/register.aspx">click here to register</a>) and then email their username and email address to <a href="mailto:jd@mindscape.co.nz">jd@mindscape.co.nz</a> will get a free license to Visual Tools for SharePoint. I&#8217;ll update this post when the give aways are complete, but be quick! <strong>UPDATE: </strong>All the free copies have been taken sorry!</p>
<p><strong>What would you say&#8230;. you do?</strong></p>
<p>Visual Tools for SharePoint is our first SharePoint related product and one of the exciting new features in SharePoint 2010 is &#8220;LINQ to SharePoint&#8221;. As many of you will know, our <a href="http://www.mindscape.co.nz/products/LightSpeed/default.aspx">LightSpeed product has a fantastic LINQ provider</a> and design surface for databases, so we are interested in all things LINQ. Microsoft <b>have not</b> made a visual design surface in Visual Studio for modeling things in SharePoint that you wish to query &#8211; you need to use an arcane command line tool. We love our Visual Studio integration and decided we could do better! </p>
<p>Here&#8217;s a screenshot (click to see it larger):</p>
<p><a href="http://www.mindscape.co.nz/blog/wp-content/uploads/2010/04/VisualToolsForSharepointActionShot.png"><img src="http://www.mindscape.co.nz/blog/wp-content/uploads/2010/04/VisualToolsForSharepointActionShot-600x442.png" alt="Visual Studio 2010 showing Visual Tools for SharePoint 2010" title="Visual Studio 2010 showing Visual Tools for SharePoint 2010" width="600" height="442" class="alignnone size-medium wp-image-1390" /></a></p>
<p>So you can connect to SharePoint from the VS 2010 Server Explorer, drag and drop your lists and have us create LINQ to SharePoint contexts and classes for you.  No more mucking around with command lines and XML configuration files!  This helps developers save time, makes generating your objects to query much easier and saves you having to leave Visual Studio 2010.  Plus you can quickly update your models from the SharePoint site so as to see what&#8217;s new or changed.</p>
<p><strong>What do you think?</strong></p>
<p>With any new product we need end user feedback &#8211; that&#8217;s why we&#8217;re giving away copies to the first 50 users.  You&#8217;ll get immediate access to the beta and a free copy of the toolkit when the retail version ships.  (You&#8217;ll need Visual Studio 2010 Professional or above, and SharePoint 2010, to use the product.)</p>
<p>We want to evolve all of our products based on the feedback we receive and make all the changes available to users through our much loved nightly build process. Please let us know what you think in the comments on this <a href="http://www.mindscape.co.nz/forums/Forum.aspx?ForumID=24">post or in our forums</a> :-)</p>
<p>So what are you waiting for? <a href="http://www.mindscape.co.nz/register.aspx">Sign up and email us your username and email address now</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindscapehq.com/blog/index.php/2010/04/22/introducing-visual-tools-for-sharepoint/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LightSpeed 3.0 Beta Release</title>
		<link>http://www.mindscapehq.com/blog/index.php/2009/10/14/lightspeed-3-0-beta-release/</link>
		<comments>http://www.mindscapehq.com/blog/index.php/2009/10/14/lightspeed-3-0-beta-release/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 04:09:54 +0000</pubDate>
		<dc:creator>John-Daniel Trask</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[LightSpeed]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[Announcement]]></category>

		<guid isPermaLink="false">http://www.mindscape.co.nz/blog/?p=977</guid>
		<description><![CDATA[I&#8217;m pleased to announce the immediate availability of LightSpeed 3.0 Beta 1 to existing LightSpeed customers. Huge querying enhancements LightSpeed has undergone a massive overhaul of its internal querying capabilities. With 2.0 we included a LINQ provider that had support for most of the capabilities included in the core LightSpeed querying API. With 3.0 we&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pleased to announce the immediate availability of LightSpeed 3.0 Beta 1 to existing LightSpeed customers.</p>
<p><strong>Huge querying enhancements</strong></p>
<p>LightSpeed has undergone a massive overhaul of its internal querying capabilities. With 2.0 we included a LINQ provider that had support for most of the capabilities included in the core LightSpeed querying API. With 3.0 we&#8217;ve beefed up both the core querying capabilities and the LINQ API to support grouping, joining, and other such goodness.</p>
<p><strong>Schema migrations support</strong></p>
<p>LightSpeed now has its own Migrations framework! Chances are that if you&#8217;re working with a database then you&#8217;re having to manage your change scripts so we&#8217;ve tried to make this process more manageable.</p>
<p>And it just wouldn&#8217;t be a Mindscape product if it didn&#8217;t integrate into Visual Studio!</p>
<p><img class="alignnone size-full wp-image-986" title="Create LightSpeed Migration" src="http://www.mindscape.co.nz/blog/wp-content/uploads/2009/10/CreateMigration.png" alt="Create LightSpeed Migration" width="451" height="137" /></p>
<p>The reason for the integration is because of the great schema round tripping features in the LightSpeed Designer. If you&#8217;re making changes to your model then you&#8217;ll want to be capturing those changes into a migration to run on various other machines such as Test and Production machines. All you need to do is work as you normally would with the designer and when you&#8217;re ready select &#8220;Create Migration&#8221; from the Migrations menu and we&#8217;ll pick up all your changes and give you a choice of what schema changes you&#8217;d like to include in the migration.</p>
<p><img class="alignnone size-full wp-image-988" title="Create new migration from code changes dialog" src="http://www.mindscape.co.nz/blog/wp-content/uploads/2009/10/MakeNewMigration.png" alt="Create new migration from code changes dialog" width="606" height="274" /></p>
<p>When it comes time to deploy you can use the lsmigrate.exe utility to run your migrations when Visual Studio is not available. Alternatively, when you elect to run the migrations you can select the option to generate SQL instead.</p>
<p><img class="alignnone size-full wp-image-985" title="Visual Studio Migrations runner dialog" src="http://www.mindscape.co.nz/blog/wp-content/uploads/2009/10/RunMigrations.png" alt="Visual Studio Migrations runner dialog" width="555" height="329" /></p>
<p>Oh, and the migrations framework works with SQL Server, Oracle, MySQL, PostgreSQL, SQLite, SQL Server CE, VistaDB and DB2! Moving between database engines just got a lot easier!</p>
<p><strong>Designer enhancements</strong></p>
<p>We&#8217;ve made a load of improvements and fixes to the LightSpeed designer. In addition to handy ease-of-use features such as making it easier to zoom, importing common attribute namespaces, and copying a picture of your model for use in a Word or PowerPoint document, some of the major features are:</p>
<ul>
<li>Refactoring. You can perform a solution-wide rename of an entity or property, with the option to retain the existing database mapping. You can also have the designer create partial classes and convert generated property implementations to manual ones ready for customisation.</li>
<li>XML documentation support for entities, properties and associations.</li>
<li>Filtering the designer view. You can choose to view just a particular entity and its associated entities, or a particular subdomain, inheritance hierarchy or aggregate. This reduces the clutter on very large models and makes it easy to locate a particular entity with just a few keystrokes.</li>
</ul>
<p>We&#8217;ve also rounded out support for the full range of LightSpeed modelling capabilities including designer support for through associations and database synchronisation support for inheritance hierarchies, plus a variety of smaller features that we&#8217;ll talk about in more detail in a later post.</p>
<p><strong>Better support for legacy databases</strong></p>
<p>Composite key lovers rejoice! LightSpeed now includes support for composite keys across the board &#8211; from the designer through to the core framework. This was one of the last remaining constraints that prevented some developers from using LightSpeed with a legacy database they couldn&#8217;t alter.</p>
<p>For environments where database access is restricted to stored procedures, LightSpeed also now supports CRUD procedures so you can specify how your entities are loaded and saved using stored procedures.</p>
<p><strong>Testing enhancements</strong></p>
<p>We&#8217;ve taken feedback on the testability of LightSpeed models and based improvements in 3.0 off that feedback.</p>
<p>Creating entities for testing has been more frustrating than it should be due to the restrictions on assigning the Id property. To resolve this LightSpeed now provides an EntityFactory class as part of the testing namespace.</p>
<p>Here&#8217;s an example of how to create an entity of a given state with a provided Id:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">var entity1 <span style="color: #008000;">=</span> EntityFactory<span style="color: #008000;">.</span><span style="color: #0000FF;">Create</span><span style="color: #008000;">&#40;</span>EntityState<span style="color: #008000;">.</span><span style="color: #0000FF;">Deleted</span>, <span style="color: #FF0000;">15</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
var entity2 <span style="color: #008000;">=</span> EntityFactory<span style="color: #008000;">.</span><span style="color: #0000FF;">Create</span><span style="color: #008000;">&#40;</span>EntityState<span style="color: #008000;">.</span><span style="color: #0600FF; font-weight: bold;">Default</span>, <span style="color: #FF0000;">16</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
var entity3 <span style="color: #008000;">=</span> EntityFactory<span style="color: #008000;">.</span><span style="color: #0000FF;">Create</span><span style="color: #008000;">&#40;</span>EntityState<span style="color: #008000;">.</span><span style="color: #0000FF;">Modified</span>, <span style="color: #FF0000;">17</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
var entity4 <span style="color: #008000;">=</span> EntityFactory<span style="color: #008000;">.</span><span style="color: #0000FF;">Create</span><span style="color: #008000;">&#40;</span>EntityState<span style="color: #008000;">.</span><span style="color: #008000;">New</span>, <span style="color: #FF0000;">18</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

<p>Keep in mind that this is entirely for testing purposes and you should not use this code in your actual solution.</p>
<p>To help use these entities in a testing scenario we also now provide a TestUnitOfWork implementation. This is like mocking out a unit of work to return specified results when a query is run and is especially helpful if you&#8217;re not working with the Repository pattern. Each query method (e.g. Find()) has the ability to have the result set for it and therefore allows for testing completely in memory.</p>
<p>We will be pushing out blog posts on this soon + some new screen casts.</p>
<p><strong>Granular change tracking</strong></p>
<p>LightSpeed users have been asking for the ability to inspect that changes made to entities for some time and now they can. Entities now contain a public ChangeTracker. This change tracker can be used to examine what fields have been changed, what the original value was and what the new value is.</p>
<p>Change tracking is disabled by default due to the extra memory weight it can add to each entity however you can easily opt in an entity to be tracked:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">  customer<span style="color: #008000;">.</span><span style="color: #0000FF;">ChangeTracker</span><span style="color: #008000;">.</span><span style="color: #0000FF;">TrackingMode</span> <span style="color: #008000;">=</span> ChangeTrackingMode<span style="color: #008000;">.</span><span style="color: #0000FF;">ChangesOnly</span><span style="color: #008000;">;</span>
&nbsp;
  <span style="color: #0600FF; font-weight: bold;">foreach</span><span style="color: #008000;">&#40;</span>var change <span style="color: #0600FF; font-weight: bold;">in</span> customer<span style="color: #008000;">.</span><span style="color: #0000FF;">Changes</span><span style="color: #008000;">&#41;</span>
  <span style="color: #008000;">&#123;</span>
    Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Property: {0}&quot;</span>, change<span style="color: #008000;">.</span><span style="color: #0000FF;">Name</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Original value: {0}&quot;</span>, change<span style="color: #008000;">.</span><span style="color: #0000FF;">OriginalValue</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Modified value: {0}&quot;</span>, change<span style="color: #008000;">.</span><span style="color: #0000FF;">ModifiedValue</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #008000;">&#125;</span></pre></div></div>

<p><strong>Database provider improvements</strong></p>
<p>Support for SQL Server 2008: LightSpeed now provides first class support for SQL Server 2008 allowing users to leverage new data types such as SqlGeography. Previously developers could re-use the SQL2005 provider when targetting a SQL 2008 database however this didn&#8217;t allow for the use of user defined types such as the spatial types.</p>
<p>Support for IBM DB2: Complete designer and core support for DB2 comes out of the box with 3.0.</p>
<p>Support for VistaDB 4.0: VistaDB 4.0 is fresh out of the oven and LightSpeed 3.0 supports this new version along with VistaDB 3.x. This includes our rich designer integration for working with your VistaDB models.</p>
<p>We&#8217;ve also made numerous improvements to the other providers to ensure we&#8217;re shipping with the latest provider assemblies.</p>
<p><strong>Much much more</strong></p>
<p>This is an absolutely huge release and this blog post could go on for many more pages listing all the enhancements. Over the coming weeks we will be posting more details about all the changes that have been made to help you develop faster and improve the robustness of your solutions.</p>
<p><strong>Where can I get it?</strong></p>
<p><a href="http://www.mindscape.co.nz/store/myaccount.aspx">LightSpeed 3 Beta 1 is available to existing customers through the store.</a> Take it for a spin and let us know what you find &#8211; we appreciate all the feedback you have!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindscapehq.com/blog/index.php/2009/10/14/lightspeed-3-0-beta-release/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (Requested URI is rejected)
Database Caching 6/16 queries in 0.078 seconds using disk: basic
Content Delivery Network via cdn.mindscapehq.com

Served from: www.mindscapehq.com @ 2012-02-07 01:03:06 -->
