Exemplo n.º 1
0
 private object[] Take(ElectricalWorkEntity electricalWorkEntity)
 {
     return(new object[]
     {
         "@ElectricalWorkID", electricalWorkEntity.ElectricalWorkId,
         "@Name", electricalWorkEntity.Name,
         "@PostedDate", electricalWorkEntity.PostedDate
     });
 }
Exemplo n.º 2
0
        public string  UpdateInsertElectricalWork(ElectricalWorkEntity electricalWorkEntity)
        {
            const string sql = @"uspInsertUpdate_ElectricalWork";

            return(Db.Update(sql, true, Take(electricalWorkEntity)));
        }