Welcome to Manicprogrammer Sign in | Join | Help

YACP - Yet Another CodePlex Project

It´s absolutely amazing how big is the capacity of Project Bhal of generating another projects as it´s offspring.

Today I created another one of those projects (they amount to 4 as of now: Wom, NMVP, Validation Everywhere and now NhbBusiness).

NHibernate Business Layer is a project that aims at making your experience while using NHibernate a lot easier, since it does a lot of the undercover dirty work for you.

As I already know that what you people like is code, here it is!

You want to create a new project? How about this:

   1:  //Creating a new project
   2:  ProjectManager projectManager = new ProjectManager();
   3:  projectManager.BeginTrans();
   4:  Project pr = projectManager.SaveNewProject(projectName, projectDescription);
   5:  projectManager.Commit();
   6:   
   7:  //The SaveNewProject method
   8:  public Data.Project SaveNewProject(string name, string description) {
   9:      Data.Project project = new Data.Project();
  10:      project.Name = name;
  11:      project.Description = description;
  12:      Save(project);
  13:   
  14:      return project;
  15:  }

 Oh I see! What you really want is just to load a collection of all the projects in the database! So here it is:

   1:  //Loading all projects
   2:  ProjectManager projectManager = new ProjectManager();
   3:  IList<Project> projects = projectManager.GetAll();

 Hmmm... You actually want all the projects that are named "Project Cool"... Well, that should give you just one, but hey, it´s your request! Here you go:

   1:  //Loading all projects
   2:  ProjectManager projectManager = new ProjectManager();
   3:  List<ICriterion> crit = new List<ICriterion>();
   4:  crit.Add(ProjectManager.Filter.Equal("Name","Project Cool"));
   5:  IList<Project> projects = projectManager.LoadCollection(crit);

 There´s a lot more from where these came from, but hey I gotta find some time to develop, and time has been hard to find (the loop at the title of this blog has just finished!!!).

Anyway, I have now 6 open-source projects to manage and keep releasing! And I will keep releasing them! Today I almost finished (and started) NhbBusiness! I finished the functionality and achieved 45% of Code Coverage. Once I reach 95%+ Code Coverage I´ll release it. And then I´ll release NMVP shortly after it.

I feel today that I´m in debt with you guys! I have 6 projects and none of them has reached Production state, but that´s just because Bhal keeps growing every time I start developing for it... It keeps giving me ideas for frameworks that will help it´s development! I hope that these frameworks will help you guys too (and gals of course hehehe)!

If I am in debt I am sorry and I´ll do my best to keep releasing each of these projects. Even though I want to release them bad, I´ll only release them once they have at least Code Coverage and FxCop evidence that allows me to release! So please be patient... That´s all I ask... If anyone has anything they´d like to say about one of those projects, or help them get released, please join the team or leave a message at the forums!

Bernardo Heynemann (Completely overloaded!!!)

#86

Published Wednesday, December 27, 2006 11:41 PM by heynemann

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: YACP - Yet Another CodePlex Project

Saturday, January 06, 2007 9:45 AM by Chris
Great project. Thanks for your effort!

# re: YACP - Yet Another CodePlex Project

Saturday, January 06, 2007 11:17 AM by heynemann
Thanks Chris. Good to know people appreciate it.

# re: YACP - Yet Another CodePlex Project

Tuesday, May 29, 2007 12:53 AM by Oguz

May be it can be great idea but ı got COM error while i try to register weblog.


Enter the text you see in the image:

Leave a Comment

(required) 
required 
(required)