codus-commits Mailing List for Codus
Brought to you by:
intesar66
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(11) |
Apr
(17) |
May
(18) |
Jun
(14) |
Jul
(11) |
Aug
(36) |
Sep
(18) |
Oct
(13) |
Nov
(20) |
Dec
(7) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(15) |
Feb
|
Mar
(119) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:49
|
Update of /cvsroot/codus/Codus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815 Modified Files: buildsetup.iss Log Message: Index: buildsetup.iss =================================================================== RCS file: /cvsroot/codus/Codus/buildsetup.iss,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** buildsetup.iss 19 Mar 2006 07:12:07 -0000 1.9 --- buildsetup.iss 29 Mar 2006 05:37:15 -0000 1.10 *************** *** 4,8 **** [Setup] AppName=Codus ! AppVerName=Codus 1.3.0b AppPublisher=Adapdev Technologies, LLC AppPublisherURL=http://www.adapdev.com/codus/ --- 4,8 ---- [Setup] AppName=Codus ! AppVerName=Codus 1.3.0a AppPublisher=Adapdev Technologies, LLC AppPublisherURL=http://www.adapdev.com/codus/ *************** *** 18,22 **** SolidCompression=yes OutputDir=bin ! OutputBaseFileName=Codus-v1.3.0.0-030206 UsePreviousAppDir=no --- 18,22 ---- SolidCompression=yes OutputDir=bin ! OutputBaseFileName=Codus-v1.3.0.0-032006 UsePreviousAppDir=no |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:27
|
Update of /cvsroot/codus/Codus/setup/templates/adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/setup/templates/adapdev Modified Files: Codus.Templates.Adapdev.dll Log Message: Index: Codus.Templates.Adapdev.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/templates/adapdev/Codus.Templates.Adapdev.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsEVpaVj and /tmp/cvsyjaqmV differ |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:23
|
Update of /cvsroot/codus/Codus/setup/templates/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/setup/templates/nhibernate Modified Files: Codus.Templates.NHibernate.dll dao.tcs Log Message: Index: Codus.Templates.NHibernate.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/templates/nhibernate/Codus.Templates.NHibernate.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsmlzUvi and /tmp/cvsfzcyZT differ Index: dao.tcs =================================================================== RCS file: /cvsroot/codus/Codus/setup/templates/nhibernate/dao.tcs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dao.tcs 3 Mar 2006 05:25:32 -0000 1.2 --- dao.tcs 29 Mar 2006 05:37:18 -0000 1.3 *************** *** 66,70 **** public ${dao}() { ! factory = Configurator.GetSessionFactory(); } --- 66,75 ---- public ${dao}() { ! try{ ! factory = Configurator.GetSessionFactory(); ! }catch(Exception ex){ ! Console.WriteLine(ex.Message); ! Console.WriteLine(ex.StackTrace); ! } } *************** *** 108,112 **** { ISession session = factory.OpenSession(); ! session.SaveOrUpdate(o); session.Close(); } --- 113,118 ---- { ISession session = factory.OpenSession(); ! session.SaveOrUpdateCopy(o); ! session.Flush(); session.Close(); } |
Update of /cvsroot/codus/Codus/setup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/setup Modified Files: Adapdev.CodeGen.dll Adapdev.Data.dll Adapdev.NVelocity.dll Adapdev.Windows.Forms.dll Adapdev.dll Codus.GUI.Extensions.dll Codus.exe Log Message: Index: Adapdev.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/Adapdev.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsBy3LgL and /tmp/cvsGeJ00k differ Index: Adapdev.CodeGen.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/Adapdev.CodeGen.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvs1ylBFP and /tmp/cvsx6Rfup differ Index: Adapdev.NVelocity.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/Adapdev.NVelocity.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsc7QcUR and /tmp/cvsymMrQr differ Index: Adapdev.Windows.Forms.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/Adapdev.Windows.Forms.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvshWfr9T and /tmp/cvsuKpV9t differ Index: Codus.GUI.Extensions.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/Codus.GUI.Extensions.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsERp3BK and /tmp/cvsUBHAHk differ Index: Codus.exe =================================================================== RCS file: /cvsroot/codus/Codus/setup/Codus.exe,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvs9d7c7N and /tmp/cvser9Kio differ Index: Adapdev.Data.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/Adapdev.Data.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsAjZhob and /tmp/cvsueArCM differ |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:23
|
Update of /cvsroot/codus/Codus/lib/adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/lib/adapdev Modified Files: Adapdev.Cache.dll Adapdev.CodeGen.dll Adapdev.Data.dll Adapdev.NVelocity.dll Adapdev.UnitTest.Core.dll Adapdev.UnitTest.TestRunner.dll Adapdev.UnitTest.dll Adapdev.Web.dll Adapdev.Windows.Forms.dll Adapdev.dll FullBuild.dll Log Message: Index: Adapdev.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.dll,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 Binary files /tmp/cvs2jay7s and /tmp/cvsCUUQ01 differ Index: Adapdev.UnitTest.TestRunner.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.TestRunner.dll,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvsxAOaiv and /tmp/cvsDpQdg4 differ Index: Adapdev.CodeGen.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.CodeGen.dll,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 Binary files /tmp/cvsy1iUbu and /tmp/cvsBBJed3 differ Index: Adapdev.Web.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Web.dll,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 Binary files /tmp/cvsmEn6Hx and /tmp/cvsZPYNN6 differ Index: Adapdev.UnitTest.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.dll,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 Binary files /tmp/cvsmtDsdx and /tmp/cvsdSxpm6 differ Index: Adapdev.NVelocity.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.NVelocity.dll,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 Binary files /tmp/cvs1ej7DA and /tmp/cvsoPF1Q9 differ Index: Adapdev.Windows.Forms.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Windows.Forms.dll,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 Binary files /tmp/cvsOrBF5z and /tmp/cvsZQprm9 differ Index: Adapdev.UnitTest.Core.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.Core.dll,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 Binary files /tmp/cvs2xe1uB and /tmp/cvsubquPa differ Index: Adapdev.Cache.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Cache.dll,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 Binary files /tmp/cvsx8j3iF and /tmp/cvsNyGWGe differ Index: FullBuild.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/FullBuild.dll,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsJrn0nE and /tmp/cvsDds5Od differ Index: Adapdev.Data.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Data.dll,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 Binary files /tmp/cvspxXcOH and /tmp/cvsfn0ejh differ |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:22
|
Update of /cvsroot/codus/Codus/setup/shared/adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/setup/shared/adapdev Modified Files: Adapdev.Cache.dll Adapdev.CodeGen.dll Adapdev.Data.dll Adapdev.NVelocity.dll Adapdev.UnitTest.Core.dll Adapdev.UnitTest.TestRunner.dll Adapdev.UnitTest.dll Adapdev.Web.dll Adapdev.Windows.Forms.dll Adapdev.dll FullBuild.dll Log Message: Index: Adapdev.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsdyEWZe and /tmp/cvsilRkgQ differ Index: Adapdev.UnitTest.TestRunner.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.UnitTest.TestRunner.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsJ1haRA and /tmp/cvsDPAsZc differ Index: Adapdev.CodeGen.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.CodeGen.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsSDBX2B and /tmp/cvsHvNxle differ Index: Adapdev.Web.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.Web.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsO06DFL and /tmp/cvsjqw0ho differ Index: Adapdev.UnitTest.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.UnitTest.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsxWRdmM and /tmp/cvs5KRm3o differ Index: Adapdev.NVelocity.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.NVelocity.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsTtOmtQ and /tmp/cvsOoRwjt differ Index: Adapdev.Windows.Forms.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.Windows.Forms.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsKSsRyR and /tmp/cvs1iorMu differ Index: Adapdev.UnitTest.Core.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.UnitTest.Core.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsav9niT and /tmp/cvsZCBjHw differ Index: Adapdev.Cache.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.Cache.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsLd4H7w and /tmp/cvsYRMW1b differ Index: FullBuild.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/FullBuild.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsUoG8Kv and /tmp/cvsC7R7Ha differ Index: Adapdev.Data.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/adapdev/Adapdev.Data.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsN64Poz and /tmp/cvs5rS3re differ |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:22
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/Properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/src/Codus.GUI/Properties Added Files: Resources.Designer.cs Log Message: --- NEW FILE: Resources.Designer.cs --- (This appears to be a binary file; contents omitted.) |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:22
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/elementary/cs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/src/Codus.GUI/templates/elementary/cs Added Files: Elementary.Mappings.xml connectionfactory.tcs entity.tcs entitybase.tcs entitycollection.tcs entitydictionary.tcs entityenumerator.tcs mockentity.tcs nunit.tcs unittest.tcs zanebug.tcs Log Message: --- NEW FILE: mockentity.tcs --- #*<?xml version="1.0" encoding="utf-8"?> <config xmlns="http://tempuri.org/DynamicGUI.xsd"> <file name="Mock${table}Entity.cs" /> <textbox name="namespace" label="Namespace" /> </config> *# #set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using Adapdev.Text; namespace ${namespace}.Mock { /// <summary> /// Represents a test instance of a $entity object /// </summary> [Serializable] public class Mock${entity} : ${entity} { public Mock${entity}() : base(){ #foreach($column in $tableschema.SortedColumns.Values) #if ($column.IsActive) this.${column.Alias} = $providerinfo.GetTestDefaultById( $databaseschema.DatabaseProviderType , $column.DataTypeId ); #end #end } } } --- NEW FILE: connectionfactory.tcs --- using System; using System.Data; using Adapdev.Data; namespace $namespace { public class ConnectionFactory { public static IDbConnection CreateConnection(){ IDbConnection connection = DbProviderFactory.CreateConnection(DbConstants.DatabaseProviderType); connection.ConnectionString = DbConstants.ConnectionString; return connection; } } } --- NEW FILE: nunit.tcs --- #*<?xml version="1.0" encoding="utf-8"?> <config xmlns="http://tempuri.org/DynamicGUI.xsd"> <file name="${table}DAOTest.cs" /> <textbox name="namespace" label="Namespace" /> </config> *# #set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) #if($tableschema.PrimaryKeyCount > 0) #set($pk = $tableschema.GetPrimaryKey(0)) #end /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using System.Collections; using ${namespace}; using ${namespace}.Mock; using Adapdev.Serialization; using NUnit.Framework; namespace ${namespace}.Tests.NUnit #parse("unittest.tcs") --- NEW FILE: entitybase.tcs --- #*<?xml version="1.0" encoding="utf-8"?> <config xmlns="http://tempuri.org/DynamicGUI.xsd"> <file name="${table}Entity.cs" /> <textbox name="namespace" label="Namespace" /> </config> *##set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using System.Xml.Serialization; using ${namespace}.Collections; using Adapdev.Text; namespace ${namespace} { /// <summary> /// An object representation of the $databaseschema.Name $table table /// </summary> [Serializable] public abstract class ${entity}Base{ #foreach($column in $tableschema.SortedColumns.Values) #if ($column.IsActive) protected $column.NetType $column.MemberName = $column.DefaultValue; #end #end #foreach($column in $tableschema.SortedColumns.Values) #if ($column.IsActive) [XmlElement(ElementName = "${column.Alias}")] public virtual $column.NetType $column.Alias { get { return this.${column.MemberName}; } set { this.${column.MemberName} = value; } } #end #end /// <summary> /// Returns a string representation of the object, displaying all property and field names and values. /// </summary> public override string ToString() { return StringUtil.ToString(this); } #foreach($column in $tableschema.PrimaryKeys.Values) #foreach($fk in $column.ForeignKeyTables) #if($fk.ForeignTable.IsActive) private ${fk.ForeignTable.Alias}EntityCollection _${fk.ForeignTable.Alias}By${column.Alias} = new ${fk.ForeignTable.Alias}EntityCollection(); public ${fk.ForeignTable.Alias}EntityCollection ${fk.ForeignTable.Alias}By${column.Alias}{ get{return this._${fk.ForeignTable.Alias}By${column.Alias};} set{this._${fk.ForeignTable.Alias}By${column.Alias} = value;} } #end #end #end } } --- NEW FILE: entitycollection.tcs --- #*<?xml version="1.0" encoding="utf-8"?> <config xmlns="http://tempuri.org/DynamicGUI.xsd"> <file name="${table}EntityCollection.cs" /> <textbox name="namespace" label="Namespace" /> </config> *# #set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using System.Collections; using Adapdev.Collections; using ${namespace}; namespace ${namespace}.Collections { [Serializable()] public class ${entity}Collection : SortableCollectionBase { public ${entity}Collection() { } public ${entity}Collection(IList value) { this.AddRange(value); } public ${entity}Collection(${entity}[] value) { this.AddRange(value); } public ${entity} this[int index] { get { return ((${entity})(List[index])); } set { List[index] = value; } } public int Add(${entity} value) { return List.Add(value); } public void AddRange(${entity}[] value) { for (int i = 0; (i < value.Length); i = (i + 1)) { this.Add(value[i]); } } public void AddRange(IList value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add((${entity})value[i]); } } public bool Contains(${entity} value) { return List.Contains(value); } public void CopyTo(${entity}[] array, int index) { List.CopyTo(array, index); } public int IndexOf(${entity} value) { return List.IndexOf(value); } public void Insert(int index, ${entity} value) { List.Insert(index, value); } public new ${entity}Enumerator GetEnumerator() { return new ${entity}Enumerator(this); } public void Remove(${entity} value) { List.Remove(value); } } } --- NEW FILE: unittest.tcs --- { /// <summary> /// Summary description for ShippersDAOTest. /// </summary> /// [TestFixture] public class ${dao}Test { $dao dao = null; int total = 0; #if($tableschema.PrimaryKeyCount > 0) bool inserted = false; #end [TestFixtureSetUp] public void TestFixtureSetup() { dao = new ${dao}(); total = dao.GetCount(); } #if($tableschema.PrimaryKeyCount > 0) [Test,Ignore("Only use this on a development database.")] public void Insert() { this.inserted = false; int count = dao.GetCount(); Mock${entity} e = new Mock${entity}(); dao.Save(e); Console.WriteLine("Inserted record: " + Environment.NewLine + e.ToString()); int count2 = dao.GetCount(); Assert.IsTrue(count == (count2 - 1), "Record was not inserted."); this.inserted = true; } #end [Test] public void SelectAll() { ICollection c = dao.SelectAll(); if(total > 0){ Assert.IsTrue(c.Count > 0, "No records returned."); //foreach($entity e in c) //{ // Console.WriteLine(e.ToString()); //} } } [Test] [Ignore("")] public void TestToString(){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1)); $entity s = (${entity})al[0]; Console.WriteLine(s.ToString()); } [Test] [Ignore("")] public void TestSerialize(){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1)); $entity s = (${entity})al[0]; Console.WriteLine(Serializer.SerializeToXml(s)); } #foreach($fk in $tableschema.ForeignKeys.Values) [Test] [Ignore("You must first enter a valid FK parameter for this test.")] public void SelectAllBy${fk.Alias}() { // ************************************************* // // Before this test can be run, you must replace the // === fill in === section with a valid parameter. // // ************************************************* //ArrayList al = new ArrayList(dao.SelectAllBy${fk.Alias}(=== fill in ===)); //Assert.IsTrue(al.Count > 0, "No records were returned."); //foreach($entity e in al) //{ // Console.WriteLine(e.ToString()); //} } #end #if($tableschema.PrimaryKeyCount > 0) [Test,Ignore("Only use this on a development database.")] public void Update() { if(this.inserted){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1, Adapdev.Data.Sql.OrderBy.DESCENDING, new string[]{${dao}.TABLE_PRIMARYKEY})); $entity s = (${entity})al[0]; Console.WriteLine("Record to be updated: "); Console.WriteLine(s.ToString()); #foreach($column in $tableschema.SortedColumns.Values) #if( !$column.IsKey && !$column.IsAutoIncremen && $column.IsActive ) s.${column.Alias} = $providerinfo.GetTestDefaultById( $databaseschema.DatabaseProviderType , $column.DataTypeId ); #end #end dao.Update(s); Console.WriteLine("Updated record:"); Console.WriteLine(s.ToString()); $entity s2 = (${entity})dao.SelectById(s.${pk.Alias}); #foreach($column in $tableschema.SortedColumns.Values) #if ($column.IsActive) Assert.AreEqual( s.${column.Alias}.ToString().Trim() , s2.${column.Alias}.ToString().Trim(), "Objects should be equal." ); #end #end }else{ throw new Exception("No test record inserted, so unable to perform update."); } } [TestFixtureTearDown] public void Delete() { if(inserted){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1, Adapdev.Data.Sql.OrderBy.DESCENDING, new string[]{${dao}.TABLE_PRIMARYKEY})); int count1 = dao.GetCount(); $entity s = (${entity})al[0]; Console.WriteLine("Deleted Record:"); Console.WriteLine(s.ToString()); dao.Delete(s.${pk.Alias}); int count2 = dao.GetCount(); Assert.IsTrue(count2 == (count1 - 1), "Unable to delete record."); this.inserted = false; } } #end } } --- NEW FILE: entityenumerator.tcs --- #*<?xml version="1.0" encoding="utf-8"?> <config xmlns="http://tempuri.org/DynamicGUI.xsd"> <file name="${table}EntityEnumerator.cs" /> <textbox name="namespace" label="Namespace" /> </config> *# #set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using System.Collections; using ${namespace}; namespace ${namespace}.Collections { public class ${entity}Enumerator : IEnumerator { private IEnumerator baseEnumerator; private IEnumerable temp; public ${entity}Enumerator(${entity}Collection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); } public ${entity}Enumerator(${entity}Dictionary mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); } public ${entity} Current { get { return ((${entity})(baseEnumerator.Current)); } } object IEnumerator.Current { get { return baseEnumerator.Current; } } public bool MoveNext() { return baseEnumerator.MoveNext(); } bool IEnumerator.MoveNext() { return baseEnumerator.MoveNext(); } public void Reset() { baseEnumerator.Reset(); } void IEnumerator.Reset() { baseEnumerator.Reset(); } } } --- NEW FILE: entitydictionary.tcs --- #set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using System.Collections; using ${namespace}; namespace ${namespace}.Collections { public class ${entity}Dictionary : DictionaryBase { public ${entity} this[ object key ] { get { return( (${entity}) Dictionary[key] ); } set { Dictionary[key] = value; } } public ICollection Keys { get { return( Dictionary.Keys ); } } public ICollection Values { get { return( Dictionary.Values ); } } public void Add( String key, object value ) { Dictionary.Add( key, value ); } public bool Contains( String key ) { return( Dictionary.Contains( key ) ); } public void Remove( String key ) { Dictionary.Remove( key ); } } } --- NEW FILE: Elementary.Mappings.xml --- #set( $entity = "${tableschema.Alias}Entity" ) <?xml version="1.0" encoding="utf-8"?> <settings> <assembly name="${namespace}.Entities" db="${databaseschema.Name}"> #foreach($t in $databaseschema.SortedTables.Values) #if($t.IsActive) <class name="${namespace}.${entity}" table="${t.Name}"> #foreach($column in $t.SortedColumns.Values) #if($column.IsActive)<property name="${column.Alias}" column="${column.Name}" />#end #end </class> #end #end </assembly> <database name="${databaseschema.Name}" connectionString="${databaseschema.ConnectionString}"> #foreach($t in $databaseschema.SortedTables.Values) <table name="${t.Name}" type="${t.TableType.ToString().ToLower()}"> #foreach($column in $t.SortedColumns.Values) #if(!$column.IsPrimaryKey)<column name="${column.Name}" />#end #if($column.IsPrimaryKey)<column name="${column.Name}" primaryKey="true" keyType="database" />#end #end </table> #end #foreach($t in $databaseschema.SortedTables.Values) #foreach($c in $t.SortedColumns.Values) #foreach($fk in $c.ForeignKeyTables) <join name="${fk.ForeignKeyName}" joinType="inner"> <jointable name="${fk.TableName}" column="${fk.ColumnName}"/> <jointable name="${fk.ForeignTableName}" column="${fk.ForeignColumnName}"/> #if($fk.SecondForeignTableName.Length > 0)<jointable name="${fk.SecondForeignTableName}" column="${fk.SecondForeignColumnName}"/>#end #if($fk.ThirdForeignTableName.Length > 0)<jointable name="${fk.ThirdForeignTableName}" column="${fk.ThirdForeignColumnName}"/>#end </join> #end #end #end </database> </settings> --- NEW FILE: zanebug.tcs --- #*<?xml version="1.0" encoding="utf-8"?> <config xmlns="http://tempuri.org/DynamicGUI.xsd"> <file name="${table}DAOTest.cs" /> <textbox name="namespace" label="Namespace" /> </config> *# #set( $dao = "${tableschema.Alias}DAO" ) #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) #if($tableschema.PrimaryKeyCount > 0) #set($pk = $tableschema.GetPrimaryKey(0)) #end /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using System.Collections; using ${namespace}; using ${namespace}.Mock; using Adapdev.Serialization; using Adapdev.UnitTest; namespace ${namespace}.Tests.Zanebug #parse("unittest.tcs") --- NEW FILE: entity.tcs --- #set( $table = "${tableschema.Alias}" ) #set( $entity = "${tableschema.Alias}Entity" ) /****************************************** * Auto-generated by $version * $datetimenow ******************************************/ using System; using ${namespace}.Collections; using Adapdev.Text; namespace ${namespace} { /// <summary> /// An object representation of the $databaseschema.Name $table table /// </summary> [Serializable] public class ${entity} : ${entity}Base{ } } |
|
From: Sean M. <int...@us...> - 2006-03-29 05:37:22
|
Update of /cvsroot/codus/Codus/setup/shared/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3815/setup/shared/nhibernate Modified Files: Castle.DynamicProxy.dll Iesi.Collections.dll NHibernate.dll Log Message: Index: NHibernate.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/nhibernate/NHibernate.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsYSzZuk and /tmp/cvsfASuBW differ Index: Iesi.Collections.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/nhibernate/Iesi.Collections.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsqICamD and /tmp/cvsc6roAf differ Index: Castle.DynamicProxy.dll =================================================================== RCS file: /cvsroot/codus/Codus/setup/shared/nhibernate/Castle.DynamicProxy.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsWOlkHG and /tmp/cvsZNTV4i differ |
|
From: Sean M. <int...@us...> - 2006-03-29 05:33:56
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/ivolved/vb.net-daab In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2857/vb.net-daab Log Message: Directory /cvsroot/codus/Codus/src/Codus.GUI/templates/ivolved/vb.net-daab added to the repository |
|
From: Sean M. <int...@us...> - 2006-03-29 05:33:47
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/elementary/cs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2799/cs Log Message: Directory /cvsroot/codus/Codus/src/Codus.GUI/templates/elementary/cs added to the repository |
|
From: Sean M. <int...@us...> - 2006-03-29 05:33:41
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/elementary In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2771/elementary Log Message: Directory /cvsroot/codus/Codus/src/Codus.GUI/templates/elementary added to the repository |
|
From: Sean M. <int...@us...> - 2006-03-29 05:33:40
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/ivolved In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2771/ivolved Log Message: Directory /cvsroot/codus/Codus/src/Codus.GUI/templates/ivolved added to the repository |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:42
|
Update of /cvsroot/codus/Codus/lib/adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/lib/adapdev Modified Files: Adapdev.Cache.dll Adapdev.CodeGen.dll Adapdev.Data.dll Adapdev.NVelocity.dll Adapdev.UnitTest.Core.dll Adapdev.UnitTest.TestRunner.dll Adapdev.UnitTest.dll Adapdev.Web.dll Adapdev.Windows.Forms.dll Adapdev.dll FullBuild.dll Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: Adapdev.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.dll,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 Binary files /tmp/cvscu7KJ7 and /tmp/cvs61tShT differ Index: Adapdev.UnitTest.TestRunner.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.TestRunner.dll,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvss647Cd and /tmp/cvseY9sjZ differ Index: Adapdev.CodeGen.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.CodeGen.dll,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 Binary files /tmp/cvsB46cgg and /tmp/cvsf9GX21 differ Index: Adapdev.Web.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Web.dll,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 Binary files /tmp/cvsoy3zWi and /tmp/cvs6rbER4 differ Index: Adapdev.UnitTest.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.dll,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 Binary files /tmp/cvs6ajtWr and /tmp/cvsmJsbje differ Index: Adapdev.NVelocity.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.NVelocity.dll,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 Binary files /tmp/cvsj28Wcx and /tmp/cvshA9THj differ Index: Adapdev.Windows.Forms.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Windows.Forms.dll,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 Binary files /tmp/cvslI5vfA and /tmp/cvs5ZTURm differ Index: Adapdev.UnitTest.Core.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.Core.dll,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 Binary files /tmp/cvsfdyUTA and /tmp/cvsCudIDn differ Index: Adapdev.Cache.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Cache.dll,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 Binary files /tmp/cvs4eZLGL and /tmp/cvsRBpfRy differ Index: FullBuild.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/FullBuild.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsR88p6N and /tmp/cvsaiNXmB differ Index: Adapdev.Data.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Data.dll,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 Binary files /tmp/cvsqMHniT and /tmp/cvs7GvDIG differ |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:42
|
Update of /cvsroot/codus/Codus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507 Modified Files: buildsetup.iss Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: buildsetup.iss =================================================================== RCS file: /cvsroot/codus/Codus/buildsetup.iss,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** buildsetup.iss 3 Mar 2006 05:25:28 -0000 1.8 --- buildsetup.iss 19 Mar 2006 07:12:07 -0000 1.9 *************** *** 19,22 **** --- 19,23 ---- OutputDir=bin OutputBaseFileName=Codus-v1.3.0.0-030206 + UsePreviousAppDir=no [Tasks] |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:23
|
Update of /cvsroot/codus/Codus/lib/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/lib/nhibernate Modified Files: Castle.DynamicProxy.dll Iesi.Collections.dll NHibernate.dll Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: NHibernate.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/nhibernate/NHibernate.dll,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsgw0ixn and /tmp/cvs2P0jsK differ Index: Iesi.Collections.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/nhibernate/Iesi.Collections.dll,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsugcFTz and /tmp/cvsfwRzWW differ Index: Castle.DynamicProxy.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/nhibernate/Castle.DynamicProxy.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsJzgQeC and /tmp/cvsQ6JSEZ differ |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:22
|
Update of /cvsroot/codus/Codus/src/Codus.Templates.Adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/src/Codus.Templates.Adapdev Modified Files: Editor.cs Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: Editor.cs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.Templates.Adapdev/Editor.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Editor.cs 1 Mar 2006 04:04:41 -0000 1.12 --- Editor.cs 19 Mar 2006 07:12:10 -0000 1.13 *************** *** 122,126 **** this.cbNUnit.Size = new System.Drawing.Size(200, 24); this.cbNUnit.TabIndex = 3; ! this.cbNUnit.Text = "Create NUnit Tests (v2.2.6)"; // // cbWebServices --- 122,126 ---- this.cbNUnit.Size = new System.Drawing.Size(200, 24); this.cbNUnit.TabIndex = 3; ! this.cbNUnit.Text = "Create NUnit Tests (v2.2.7)"; // // cbWebServices |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:22
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/src/Codus.GUI/templates/nhibernate Modified Files: dao.tcs hibernate.cfg.xml nant.build Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: hibernate.cfg.xml =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate/hibernate.cfg.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** hibernate.cfg.xml 15 Mar 2006 04:35:18 -0000 1.3 --- hibernate.cfg.xml 19 Mar 2006 07:12:10 -0000 1.4 *************** *** 13,20 **** <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> ! ! #elseif($databaseschema.DatabaseType.ToString() == "ORACLE") ! ! <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> <property name="dialect">NHibernate.Dialect.OracleDialect</property> --- 13,25 ---- <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> ! ! #elseif($databaseschema.DatabaseType.ToString() == "ACCESS") ! ! <property name="connection.driver_class">NHibernate.Driver.OleDbDriver</property> ! <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> ! ! #elseif($databaseschema.DatabaseType.ToString() == "ORACLE") ! ! <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> <property name="dialect">NHibernate.Dialect.OracleDialect</property> Index: dao.tcs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate/dao.tcs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dao.tcs 3 Mar 2006 05:25:32 -0000 1.5 --- dao.tcs 19 Mar 2006 07:12:10 -0000 1.6 *************** *** 66,70 **** public ${dao}() { ! factory = Configurator.GetSessionFactory(); } --- 66,75 ---- public ${dao}() { ! try{ ! factory = Configurator.GetSessionFactory(); ! }catch(Exception ex){ ! Console.WriteLine(ex.Message); ! Console.WriteLine(ex.StackTrace); ! } } *************** *** 108,112 **** { ISession session = factory.OpenSession(); ! session.SaveOrUpdate(o); session.Close(); } --- 113,118 ---- { ISession session = factory.OpenSession(); ! session.SaveOrUpdateCopy(o); ! session.Flush(); session.Close(); } Index: nant.build =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate/nant.build,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** nant.build 1 Mar 2006 04:04:41 -0000 1.4 --- nant.build 19 Mar 2006 07:12:10 -0000 1.5 *************** *** 3,9 **** <description>Builds all files for the NHibernate Framework</description> <property name="debug" value="true" overwrite="true" /> ! <property name="nhibernate" value="${codusdir}\shared\nhibernate" overwrite="true" /> ! <property name="adapdev" value="${codusdir}\shared\adapdev" overwrite="true" /> ! <property name="nunit" value="${codusdir}\shared" overwrite="true" /> <property name="output" value="${outputdir}\src" overwrite="true" /> <property name="bin" value="${outputdir}\bin" overwrite="true" /> --- 3,9 ---- <description>Builds all files for the NHibernate Framework</description> <property name="debug" value="true" overwrite="true" /> ! <property name="nhibernate" value="${codusdir}shared\nhibernate" overwrite="true" /> ! <property name="adapdev" value="${codusdir}shared\adapdev" overwrite="true" /> ! <property name="nunit" value="${codusdir}shared" overwrite="true" /> <property name="output" value="${outputdir}\src" overwrite="true" /> <property name="bin" value="${outputdir}\bin" overwrite="true" /> *************** *** 12,33 **** <mkdir dir="${bin}" /> <copy todir="${bin}"> ! <fileset basedir="${nhibernate}"> <include name="*.dll" /> ! </fileset> </copy> <copy todir="${bin}"> ! <fileset basedir="${output}\Mappings"> ! <include name="*.xml" /> ! </fileset> </copy> <copy todir="${bin}"> ! <fileset basedir="${adapdev}"> <include name="Adapdev*.dll" /> ! </fileset> </copy> <copy todir="${bin}"> ! <fileset basedir="${codusdir}\shared"> ! <include name="MySql.Data.dll" /> ! </fileset> </copy> --- 12,34 ---- <mkdir dir="${bin}" /> <copy todir="${bin}"> ! <fileset basedir="${nhibernate}"> <include name="*.dll" /> ! </fileset> </copy> <copy todir="${bin}"> ! <fileset basedir="${output}\Mappings"> ! <include name="*.xml" /> ! </fileset> </copy> <copy todir="${bin}"> ! <fileset basedir="${adapdev}"> <include name="Adapdev*.dll" /> ! </fileset> </copy> <copy todir="${bin}"> ! <fileset basedir="${codusdir}\shared"> ! <include name="MySql.Data.dll" /> ! <include name="nunit.framework.dll" /> ! </fileset> </copy> *************** *** 46,50 **** <include name="${nhibernate}\log4net.dll" /> <include name="${nhibernate}\nhibernate.dll" /> - <include name="${nhibernate}\nhibernate.DomainModel.dll" /> </references> </csc> --- 47,50 ---- *************** *** 61,69 **** <include name="${nhibernate}\log4net.dll" /> <include name="${nhibernate}\nhibernate.dll" /> - <include name="${nhibernate}\nhibernate.DomainModel.dll" /> <include name="${nunit}\nunit.framework.dll" /> <include name="${bin}\DAO.dll" /> </references> </csc> <csc target="library" output="${bin}\DAO.Tests.Zanebug.dll" debug="${debug}"> <sources failonempty="true"> --- 61,69 ---- <include name="${nhibernate}\log4net.dll" /> <include name="${nhibernate}\nhibernate.dll" /> <include name="${nunit}\nunit.framework.dll" /> <include name="${bin}\DAO.dll" /> </references> </csc> + <!-- <csc target="library" output="${bin}\DAO.Tests.Zanebug.dll" debug="${debug}"> <sources failonempty="true"> *************** *** 78,82 **** <include name="${nhibernate}\log4net.dll" /> <include name="${nhibernate}\nhibernate.dll" /> - <include name="${nhibernate}\nhibernate.DomainModel.dll" /> <include name="${adapdev}\Adapdev.UnitTest.dll" /> <include name="${adapdev}\Adapdev.UnitTest.Core.dll" /> --- 78,81 ---- *************** *** 84,88 **** </references> </csc> ! </target> </project> --- 83,87 ---- </references> </csc> ! --> </target> </project> |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:22
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/Commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/src/Codus.GUI/Commands Modified Files: SaveSettingsCommand.cs Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: SaveSettingsCommand.cs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/Commands/SaveSettingsCommand.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SaveSettingsCommand.cs 1 Jun 2005 12:37:04 -0000 1.1 --- SaveSettingsCommand.cs 19 Mar 2006 07:12:10 -0000 1.2 *************** *** 28,32 **** try { ! Settings s = new Settings(); foreach (TreeNode t in this._databases.Nodes) { --- 28,34 ---- try { ! if (!Directory.Exists(Constants.SettingsPath)) Directory.CreateDirectory(Constants.SettingsPath); ! ! Settings s = new Settings(); foreach (TreeNode t in this._databases.Nodes) { |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:22
|
Update of /cvsroot/codus/Codus/src/Codus.GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/src/Codus.GUI Modified Files: Codus.GUI.csproj Constants.cs MainForm.cs SchemaConfigImpl.cs TemplateProjects.xml Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: MainForm.cs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/MainForm.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** MainForm.cs 1 Mar 2006 04:04:41 -0000 1.23 --- MainForm.cs 19 Mar 2006 07:12:10 -0000 1.24 *************** *** 33,36 **** --- 33,38 ---- using System.Collections.Generic; + delegate void SetSelectedTab(TabControl tab, int i); + /// <summary> /// Summary description for Form1. *************** *** 110,137 **** public MainForm() { ! // Required for Windows Form Designer support ! InitializeComponent(); ! // Load previously added templates ! new LoadTemplatesCommand(this.tvTemplates).Execute(); ! this.tbNamespace.Text = "Test"; ! this.tbOutput.Text = @"c:\output"; ! this.Text = Constants.GetDisplayVersion(); ! this.btnAddDatabase.Enabled = false; ! this.btnLoadTables.Enabled = false; ! this.databaseWizard.ConnectionControl.TextChanged += new EventHandler(this.tbConnectionName_TextChanged); ! this.databaseWizard.TypesTreeView.AfterSelect += new TreeViewEventHandler(this.typesTreeView_AfterSelect); ! TabComponent tablesEditor = new TablesEditor(); ! tablesEditor.DatabaseSchema = this.databaseSchema; ! tablesEditor.DatabaseWizard = this.databaseWizard; ! tablesEditor.Dock = DockStyle.Fill; ! this.tabComponents.Add(tablesEditor); ! this.tpTables.Controls.Add(tablesEditor); } /// <summary> /// Clean up any resources being used. --- 112,172 ---- public MainForm() { ! try ! { ! // Required for Windows Form Designer support ! InitializeComponent(); ! this.CopySettings(); ! // Load previously added templates ! new LoadTemplatesCommand(this.tvTemplates).Execute(); ! this.tbNamespace.Text = "Test"; ! this.tbOutput.Text = @"c:\output"; ! this.Text = Constants.GetDisplayVersion(); ! this.btnAddDatabase.Enabled = false; ! this.btnLoadTables.Enabled = false; ! this.databaseWizard.ConnectionControl.TextChanged += new EventHandler(this.tbConnectionName_TextChanged); ! this.databaseWizard.TypesTreeView.AfterSelect += new TreeViewEventHandler(this.typesTreeView_AfterSelect); ! TabComponent tablesEditor = new TablesEditor(); ! tablesEditor.DatabaseSchema = this.databaseSchema; ! tablesEditor.DatabaseWizard = this.databaseWizard; ! tablesEditor.Dock = DockStyle.Fill; ! this.tabComponents.Add(tablesEditor); ! this.tpTables.Controls.Add(tablesEditor); ! } ! catch (Exception ex) ! { ! new ShowErrorMessageCommand(this, ex, true).Execute(); ! } } + private void CopySettings() + { + try + { + if (!Directory.Exists(Constants.SettingsPath)) Directory.CreateDirectory(Constants.SettingsPath); + + if (File.Exists(Constants.PreviousSettingsFile) && !File.Exists(Constants.SettingsFile)) + { + File.Copy(Constants.PreviousSettingsFile, Constants.SettingsFile); + } + + // If the settings file isn't present in the user's + // local application data folder, then copy it from + // the install folder + if (!File.Exists(Constants.SettingsFile)) + { + File.Copy(Constants.LocalSettingsFile, Constants.SettingsFile); + } + } + catch (Exception ex) + { + Debug.WriteLine(ex.Message); + } + } + /// <summary> /// Clean up any resources being used. *************** *** 882,893 **** private void MainForm_Load(object sender, EventArgs e) { - // If the settings file isn't present in the user's - // local application data folder, then copy it from - // the install folder - if(!File.Exists(Constants.SettingsFile)) - { - File.Copy(Constants.LocalSettingsFile, Constants.SettingsFile); - } - // Load the settings file LoadSettingsCommand load = new LoadSettingsCommand(this.tvDatabases); --- 917,920 ---- *************** *** 1134,1139 **** if (!this.AnyTemplatesChecked()) { - this.tabControl.SelectedIndex = 1; MessageBox.Show("You must select at least one template."); } else --- 1161,1166 ---- if (!this.AnyTemplatesChecked()) { MessageBox.Show("You must select at least one template."); + this.tabControl.BeginInvoke(new SetSelectedTab(SetSelectedTab), this.tabControl, 1); } else *************** *** 1362,1365 **** --- 1389,1397 ---- } } + + private void SetSelectedTab(TabControl tab, int i) + { + tab.SelectedIndex = i; + } } } \ No newline at end of file Index: TemplateProjects.xml =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/TemplateProjects.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TemplateProjects.xml 1 Mar 2006 04:04:41 -0000 1.10 --- TemplateProjects.xml 19 Mar 2006 07:12:10 -0000 1.11 *************** *** 144,149 **** <Description>Generates the data access tier for a given database.</Description> <Author>Adapdev.Technologies</Author> ! <Version>v1.0</Version> ! <Copyright>2005</Copyright> <Editor assembly="templates\adapdev\Codus.Templates.Adapdev.dll" class="Codus.Templates.Adapdev.Editor" /> <Templates> --- 144,149 ---- <Description>Generates the data access tier for a given database.</Description> <Author>Adapdev.Technologies</Author> ! <Version>v1.3</Version> ! <Copyright>2006</Copyright> <Editor assembly="templates\adapdev\Codus.Templates.Adapdev.dll" class="Codus.Templates.Adapdev.Editor" /> <Templates> *************** *** 343,351 **** </TemplateProject> <TemplateProject solution="NHibernate"> ! <Name>NHibernate Framework - C#</Name> <Description>Generates the data access tier for a given database.</Description> <Author>Adapdev.Technologies</Author> ! <Version>v1.0</Version> ! <Copyright>2005</Copyright> <Editor assembly="templates\nhibernate\Codus.Templates.NHibernate.dll" class="Codus.Templates.Adapdev.Editor" /> <Templates> --- 343,351 ---- </TemplateProject> <TemplateProject solution="NHibernate"> ! <Name>NHibernate Framework (1.0.2.0)- C#</Name> <Description>Generates the data access tier for a given database.</Description> <Author>Adapdev.Technologies</Author> ! <Version>v1.3</Version> ! <Copyright>2006</Copyright> <Editor assembly="templates\nhibernate\Codus.Templates.NHibernate.dll" class="Codus.Templates.Adapdev.Editor" /> <Templates> Index: SchemaConfigImpl.cs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/SchemaConfigImpl.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** SchemaConfigImpl.cs 3 Mar 2006 05:25:32 -0000 1.8 --- SchemaConfigImpl.cs 19 Mar 2006 07:12:10 -0000 1.9 *************** *** 328,332 **** // Add assembly references owp.OutputString("-- Adding dll reference: " + this.GetSharedPath(refRow.assembly) + Environment.NewLine); ! vsp.References.Add(this.GetSharedPath(refRow.assembly)); } --- 328,333 ---- // Add assembly references owp.OutputString("-- Adding dll reference: " + this.GetSharedPath(refRow.assembly) + Environment.NewLine); ! try { vsp.References.Add(this.GetSharedPath(refRow.assembly)); } ! catch { owp.OutputString("!! Couldn't find: " + this.GetSharedPath(refRow.assembly) + Environment.NewLine); } } *************** *** 335,339 **** // Add project references owp.OutputString("-- Adding project reference: " + this.GetSharedPath(refRow.project) + Environment.NewLine); ! vsp.References.AddProject(projects[refRow.project] as Project); } } --- 336,341 ---- // Add project references owp.OutputString("-- Adding project reference: " + this.GetSharedPath(refRow.project) + Environment.NewLine); ! try { vsp.References.AddProject(projects[refRow.project] as Project); } ! catch { owp.OutputString("!! Can't find: " + this.GetSharedPath(refRow.project) + Environment.NewLine); } } } Index: Codus.GUI.csproj =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/Codus.GUI.csproj,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Codus.GUI.csproj 1 Mar 2006 04:04:41 -0000 1.19 --- Codus.GUI.csproj 19 Mar 2006 07:12:10 -0000 1.20 *************** *** 169,172 **** --- 169,177 ---- <SubType>Form</SubType> </Compile> + <Compile Include="codus.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + <DependentUpon>codus.settings</DependentUpon> + </Compile> <Compile Include="CodusSplash.cs"> <SubType>Form</SubType> Index: Constants.cs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/Constants.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Constants.cs 1 Mar 2006 04:04:41 -0000 1.4 --- Constants.cs 19 Mar 2006 07:12:10 -0000 1.5 *************** *** 1,3 **** --- 1,4 ---- using System; + using System.IO; using System.Reflection; using System.Configuration; *************** *** 10,15 **** public class Constants { ! public static readonly string SettingsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData); public static readonly string SettingsFile = System.IO.Path.Combine(SettingsPath,"codus.settings"); public static readonly string LocalSettingsFile = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"codus.settings"); --- 11,18 ---- public class Constants { ! public static readonly string SettingsPath = Path.Combine(Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData), "codus"), Constants.GetVersion()); ! public static readonly string PreviousSettingsPath = Path.Combine(Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData), "codus"), Constants.GetPreviousVersion()); public static readonly string SettingsFile = System.IO.Path.Combine(SettingsPath,"codus.settings"); + public static readonly string PreviousSettingsFile = System.IO.Path.Combine(PreviousSettingsPath, "codus.settings"); public static readonly string LocalSettingsFile = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"codus.settings"); *************** *** 33,36 **** --- 36,44 ---- return String.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Build); } + + public static string GetPreviousVersion() + { + return "1.2.0"; + } } } |
|
From: Sean M. <int...@us...> - 2006-03-19 07:12:20
|
Update of /cvsroot/codus/Codus/src/Codus.Templates.NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11507/src/Codus.Templates.NHibernate Modified Files: Editor.cs Log Message: Upgraded to NUnit 2.2.7 Upgraded to NHibernate 1.0.2 Fixed several NHibernate bugs Fixed several Oracle / Access bugs Fixed schema comparison / retrieval bugs Improved error handling Index: Editor.cs =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.Templates.NHibernate/Editor.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Editor.cs 1 Mar 2006 04:04:41 -0000 1.5 --- Editor.cs 19 Mar 2006 07:12:11 -0000 1.6 *************** *** 104,108 **** this.cbNUnit.Size = new System.Drawing.Size(200, 24); this.cbNUnit.TabIndex = 3; ! this.cbNUnit.Text = "Create NUnit Tests (v2.2.6)"; // // cbWebServices --- 104,108 ---- this.cbNUnit.Size = new System.Drawing.Size(200, 24); this.cbNUnit.TabIndex = 3; ! this.cbNUnit.Text = "Create NUnit Tests (v2.2.7)"; // // cbWebServices |
|
From: Sean M. <int...@us...> - 2006-03-18 09:57:58
|
Update of /cvsroot/codus/Codus/lib/adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12592/lib/adapdev Modified Files: Adapdev.Cache.dll Adapdev.CodeGen.dll Adapdev.Data.dll Adapdev.NVelocity.dll Adapdev.UnitTest.Core.dll Adapdev.UnitTest.TestRunner.dll Adapdev.UnitTest.dll Adapdev.Web.dll Adapdev.Windows.Forms.dll Adapdev.dll TestDriven.Framework.dll nunit.framework.dll Log Message: Index: Adapdev.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.dll,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 Binary files /tmp/cvs62fs2f and /tmp/cvsu2Yf8G differ Index: Adapdev.UnitTest.TestRunner.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.TestRunner.dll,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsUDKJck and /tmp/cvsa7dsrL differ Index: Adapdev.CodeGen.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.CodeGen.dll,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 Binary files /tmp/cvsGVjU8n and /tmp/cvsP4dcsP differ Index: Adapdev.Web.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Web.dll,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 Binary files /tmp/cvseaQkYp and /tmp/cvssNoypR differ Index: Adapdev.UnitTest.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.dll,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 Binary files /tmp/cvsT4aMot and /tmp/cvsmuBWUU differ Index: Adapdev.NVelocity.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.NVelocity.dll,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 Binary files /tmp/cvsccjI2u and /tmp/cvswINRFW differ Index: Adapdev.Windows.Forms.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Windows.Forms.dll,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 Binary files /tmp/cvsWHRcUx and /tmp/cvsHgl2CZ differ Index: Adapdev.UnitTest.Core.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.UnitTest.Core.dll,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 Binary files /tmp/cvs5DKD5z and /tmp/cvsPwkWT1 differ Index: Adapdev.Cache.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Cache.dll,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 Binary files /tmp/cvsVSORiC and /tmp/cvsYzgGb4 differ Index: TestDriven.Framework.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/TestDriven.Framework.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsulFayB and /tmp/cvs00tev3 differ Index: nunit.framework.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/nunit.framework.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsz2hGpF and /tmp/cvss4fSq7 differ Index: Adapdev.Data.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/adapdev/Adapdev.Data.dll,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 Binary files /tmp/cvsX4w5aH and /tmp/cvsF3wci9 differ |
|
From: Sean M. <int...@us...> - 2006-03-18 09:57:57
|
Update of /cvsroot/codus/Codus/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12592/lib Modified Files: nunit.framework.dll Log Message: Index: nunit.framework.dll =================================================================== RCS file: /cvsroot/codus/Codus/lib/nunit.framework.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsonrnpf and /tmp/cvsNu6rsG differ |
|
From: Sean M. <int...@us...> - 2006-03-18 09:57:57
|
Update of /cvsroot/codus/Codus/setup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12592/setup Modified Files: codustest.mdb Log Message: Index: codustest.mdb =================================================================== RCS file: /cvsroot/codus/Codus/setup/codustest.mdb,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsuoqE36 and /tmp/cvsa0u8Gx differ |
|
From: Sean M. <int...@us...> - 2006-03-15 04:35:21
|
Update of /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17612/src/Codus.GUI/templates/nhibernate Modified Files: hbm.xml hibernate.cfg.xml Log Message: Index: hibernate.cfg.xml =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate/hibernate.cfg.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** hibernate.cfg.xml 18 Sep 2005 03:03:30 -0000 1.2 --- hibernate.cfg.xml 15 Mar 2006 04:35:18 -0000 1.3 *************** *** 27,32 **** <!-- mapping files --> ! #foreach($table in $databaseschema.Tables.Values) ! #if($table.HasPrimaryKeys) <mapping file="${table.Alias}.hbm.xml" /> --- 27,32 ---- <!-- mapping files --> ! #foreach($table in $databaseschema.SortedTables.Values) ! #if($table.HasPrimaryKeys && $table.IsActive) <mapping file="${table.Alias}.hbm.xml" /> Index: hbm.xml =================================================================== RCS file: /cvsroot/codus/Codus/src/Codus.GUI/templates/nhibernate/hbm.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** hbm.xml 18 Sep 2005 03:03:30 -0000 1.2 --- hbm.xml 15 Mar 2006 04:35:18 -0000 1.3 *************** *** 20,24 **** #foreach($column in $tableschema.SortedColumns.Values) ! #if($column.Name != $pk.Name)<property name="${column.Alias}"/>#end #end --- 20,24 ---- #foreach($column in $tableschema.SortedColumns.Values) ! #if($column.Name != $pk.Name && $column.IsActive)<property name="${column.Alias}"/>#end #end |