Saturday, August 18, 2007
This is mainly a service release, fixing some nasty bugs or "features".

AW now supports international versions of Visual Studio better. Preview 3 introduced hbm.xml generation but a bug prevented it to be usable without intevention. And drag-drop support for MySQL was broken if the user have a different version of Connector installed. All should work OK now.

Download here.

Preview 3.1 Release - 18/08/2007

What's New:
  • CONTRIB-31: "Lazy" One-to-One relation. (Thanks: Gabriel Schenker)

Fixes:

  • Server Explorer drag'n drop is now supported on international versions of VS. (Patch: Daniel Rothmaler)
  • Server Explorer support changed to VS Connection Service and its Connection Hierarchies, instead of the Server Explorer's UIHierarchies to prevent the flicker during the hierarchy traversing process. (Patch: Daniel Rothmaler)
  • Closing Contrib-25. ValidateNotSameAttribute Won't be supported ATM.
  • CONTRIB-33: When adding a table (SQL Server) to the designer which has a primary key of type uniqueidentifier ActiveWriter should use "Guid" instead of "Native" as generator (Thanks: Gabriel Schenker)
  • Assembly names in NHibernate configs are incorrectly stripped from the name. (Thanx: Fedde)
  • Removed dependency to MySQL.Data.dll to prevent runtime version conflicts. Moved to IDbConnection for all metadata retrieval jobs. (Thanks: Joao Paulo Marques and Shane)

8/18/2007 7:59:28 PM UTC
Thank you!
8/18/2007 10:04:36 PM UTC
I uninstalled and installed this new version.

I am unable to drag tables to the diagram now?
9/1/2007 7:44:17 PM UTC
Hey,
Great work (again)!
Only one question when I have a one-to-one relationship, I get a OneToOne attribute set at my property, but do I need this for NHibernate?
9/4/2007 8:05:58 PM UTC
Hi Fedde,

You'll need it to make AR generate the correct hbm.xml since ActiveWriter does not actually generate the hbm file. It builds an AR assembly in memory and let AR to generate the hbm. It then gets the generated hbm.xml from AR and adds to your VS solution.
Gokhan
9/24/2007 1:28:36 AM UTC
I just downloaded the new RC3 version of the Castle Project.

One thing I noticed is that they've separated the Castle assemblies from other dependant assemblies (eg. NHibernate.dll).

I think this means you'll have to change having just one "Assembly Path" property, as Castle.ActiveRecord and NHibernate are now in different folders.

-dave
9/24/2007 11:17:09 AM UTC
@David,

Thanks for the info. I'll release a RC3 compatible version to address this, then.
Gokhan
10/4/2007 7:02:03 AM UTC
A few more thoughts:

Could you add an option to generate an Interface for each class (and make the class implement that interface)?

I also noticed that the nested hbm.xml files have the first character of the class/table name trimmed..

eg. If i have a class named "Candidate" on my model, then the file saved is "andidate.hbm.xml"

I don't know if that is intended or a bug.

thanks again for a great tool!

-dave
11/19/2007 10:45:05 PM UTC
Hey,

1. Vs2008 is being released this week and i have been using it for months. Will you be upgrading the source.
i have to use vs 2008 because i am doing Silverlight stuff.
Note the DSL tools are included in the VS SDK for VS 2008.
http://blogs.msdn.com/jameslau/archive/2007/08/09/vs-2008-sdk-august-ctp-released.aspx.
The good news is that the DSL tols and the licensing is much more relaxed in the vs2008 version !!

2. i am not using Active record but just NHibernate. Does this tool generate the mapping files and the entities? I read aboive that it only does the entities so its a bit confusing.


This is just what the doctored ordered for getting more developers interested in sing NHibernate.
11/22/2007 9:19:42 AM UTC
Hi there

You'r doing a great job with the ActiveWriter, it really speed up things.
I'm stuck in one thing...it is possible to specify the JoinedBase property with ActiveWriter or the only way is to use the partial class features and add the property there?

Thank you
11/22/2007 11:44:22 AM UTC
@Johnny

Sorry, JoinedBase is not supported ATM, but I'll do my best to add it to the next release. A user previously suggested a patch for that, I'll see what I can do.
Gokhan
11/22/2007 7:03:29 PM UTC
Awsone :)

I have another question...
When I drag a class to the model desinger, it's generated the following code by default i suppose:

[ActiveRecord()]
public partial class ModelClass1 ...

Is there a way to generate a class without the [ActiveRecord()]? It would be helpfull to specify if i want it or not, to have the code like this:

public partial class ModelClass1 ...

I have a base class that i don't want to be persisted in the database and therefor i need to generate the code without the [ActiveRecord()] "tag" :p

Thanks anyway
11/23/2007 6:25:32 AM UTC
@Johnny,

You can't do that. And that would make AW a Class Designer replacement.

You can define your base class outside and use "Base Class Name" property to make it derive from that base.
Gokhan
11/27/2007 12:40:05 PM UTC
You'r right.

Tell me, does ActiveWriter supports NHibernate composite-element? It is possible to generate this NHibernate code to ActiveRecord with AW:

bag name="Distributions"
table="Lead_Action_FollowUp_Distribution"
access="nosetter.camelcase-underscore"
key column="ActionId"
composite-element class="Cystem.Members.Leads.Actions.MessageBase.Distribution,Cystem.Members"
property name="Name" column="Name" type="String" access="nosetter.camelcase-underscore"
property name="EmailAddress" column="EmailAddress" type="String" access="nosetter.camelcase-underscore"
property name="Language" type="Cystem.LanguageType,Cystem" access="nosetter.camelcase-underscore"
/composite-element
bag

Thanks
12/4/2007 3:04:09 AM UTC
Hi! I've been a huge fan of your work on ActiveWriter as I specialize in DSL development, VSX, and in general 'tools that make tools' type applications for the development community.

I'm also deeply into NHibernate and all the Castle goodness.

Anyway, I just finished a complete upgrade of ActiveWriter to VS 2008 as I needed it (and I read you were planning to do this).

Where would you like the source? I don't have branch creation access to the CastleContrib SVN. I created this as a branch off your trunk and I firmly believe you could (or I would be happy to if you need an extra pair of hands) make this work for 2005 or 2008.

I just posted some screen shots of the upgrade here:

http://www.flickr.com/photos/damoncarr/sets/72157601888706995

Cool stuff?

1) Branding on the splash of VS 2008
2) Attempt at autolayout
3) Complete rewrite of the Server Explorer 'from the drag to the connection' work (as the old interfaces seem gone)
4) Many other nice things, which I will document after doing my final diff.

As you will see from these pictures I also rebranded everything to look quite nice, including setup and the read-me that is launched.

I look forward to hearing from you. My email is damon at agilefactor dot com.

Thanks!

Damon







12/4/2007 7:41:39 AM UTC
@Damon

I just checked the contrib svn ... didn't see your 2008 migration. Am I missing something???
12/4/2007 11:39:29 AM UTC
@Damon,

I don't know if you got my reply. Yes, I'm very interested in your work and happily create a branch with your code. Can you send me a zip or a diff?

@Wayde

As soon as he sends me the source, I'll create a branch for it, incorporating with David Gardiner's changes.
Gokhan
12/20/2007 8:18:39 PM UTC
Please see my latest comments on the wiki.

Basically ther is a fairly large issue with memory as code-gen doesnot ever unload as the CodeDom assemblies go into the main AppDomain.

Call me or email me so we can discuss. I am almost done and didn't want to send you a non-working system (grin)..

Damon
3/27/2008 10:41:20 AM UTC
A workaround for those who use NHibernate only and having problem with OneToOneAttribute:
Create an internal class named OneToOneAttribute which inherits from System.Attribute.

internal class OneToOneAttribute : Attribute
{
}

Remember to put this class in the right namespace and now VS.NET will not complain any more. This workaround can be applied to other unwanted attributes as well.

I have a feature request: will ActiveWriter support "extends" feature of NHibernate? I develop applications with plugin based approach, so I have classes in plugins inherits from base class, but because ActiveWriter doesn't support that, I have to handle that class, and any other class that have link to that class by hand, which is not so nice.
4/29/2008 12:37:58 PM UTC
Using VS2008,my toolbox for ActiveWriter contains only the "Class" item. I cannot create any relationships or anything. Am I missing something? There is also something in the toolbar which has a label of #13119, but no contents.

Thanks.
8/19/2008 8:12:17 AM UTC
ok, good!
share best site for you:
wow gold http://www.wowgolds.co.uk
广州电脑维修 http://www.boweipc.cn
11/17/2008 7:52:23 PM UTC
The configuration for NH 2.0.1GA is different from 1.2. Is there / will there be an update to ActiveWriter to handle the proper file generation?
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):