// File Name: Orders_Br.cs

// Description: This file contains business rules relating to 'Orders'.

//          All user modifications should be made to this file and not to Orders_Br_Base.cs.

//

// Version History

// 6/6/2005 File Initially Generated By Blue Ink - http://www.blueink.biz

 

using System;

using System.Data;

using System.Data.SqlClient;

 

using AutomatedArchitecture.Northwind.Br.Base;

//using AutomatedArchitecture.Northwind.Dao.Helpers;

//using AutomatedArchitecture.Northwind.Dao;

//using AutomatedArchitecture.Northwind.Common.Classes;

//using AutomatedArchitecture.Northwind.Common.Entities;

 

namespace AutomatedArchitecture.Northwind.Br {

      public class Orders_Br : Orders_Br_Base {

//          Note: Override the Insert method to perform business rules prior to inserting new records

//          public override OperationResult Insert(Orders_InsertInputDataSet.OrdersRow rowInsert) {

//                IDbConnection cn = DaoHelper.GetGenericConnection();

//                cn.Open();

//                try {

//                      rowInsert.CreatedByUserId = Security_Br.GetUserIdOfCurrentUser();;

//                      rowInsert.CreatedDate = DateTime.Now;

//                      return base.Insert(rowInsert, cn);

//                } finally {

//                      cn.Close();

//                      cn.Dispose();

//                }

//          }

 

//          Note: Override the UpdateSelectedFields method to perform business rules prior to updating records

//          public override OperationResult UpdateSelectedFields(Orders_UpdateInputDataSet.OrdersRow rowUpdate) {

//                IDbConnection cn = DaoHelper.GetGenericConnection();

//                cn.Open();

//                try {

//                      rowUpdate.LastModifiedByUserId = Security_Br.GetUserIdOfCurrentUser();;

//                      rowUpdate.LastModifiedDate = DateTime.Now;

//                      return base.UpdateSelectedFields(rowUpdate, cn);

//                } finally {

//                      cn.Close();

//                      cn.Dispose();

//                }

//          }

      }

}