Exemplo n.º 1
0
        public void Delete(Core.Business.InstrumentRecommend instrumentRecommend)
        {
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, instrumentRecommend.Id);
            sql.ExecuteSql(SqlDeleteInstrumentRecommend);
        }
Exemplo n.º 2
0
        public void Update(Core.Business.InstrumentRecommend instrumentRecommend)
        {
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@Autor", SqlDbType.UniqueIdentifier, instrumentRecommend.Autor);
            sql.AddParameter("@RecommendDate", SqlDbType.DateTime, instrumentRecommend.RecommendDate);
            sql.AddParameter("@Commend", SqlDbType.NVarChar, instrumentRecommend.Commend);
            sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, instrumentRecommend.Id);
            sql.ExecuteSql(SqlUpdateInstrumentRecommend);
        }