public virtual void Insert() { resourceSchema.Dal.Projecttypes dbo = null; try { dbo = new resourceSchema.Dal.Projecttypes(); dbo.ProjectTypes_Insert(this.Publicid, this.Path, this.Createdate, this.Lastmodifieddate, this.Active); } catch (System.Exception ) { throw; } finally { if ((dbo != null)) { dbo.Dispose(); } } }