public override int InsertIdentityId(PlayHistoryVO m)
        {
            CodeCommand command = new CodeCommand();

            command.CommandText = INSERT + "; select @@Identity";

            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@AdUserId", Value = ParameterHelper.ConvertValue(m.AdUserId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@FlowUserId", Value = ParameterHelper.ConvertValue(m.FlowUserId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@AdId", Value = ParameterHelper.ConvertValue(m.AdId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@AdUrl", Value = ParameterHelper.ConvertValue(m.AdUrl)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Time", Value = ParameterHelper.ConvertValue(m.Time)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Money", Value = ParameterHelper.ConvertValue(m.Money)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@CreateDate", Value = ParameterHelper.ConvertValue(m.CreateDate)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@CreateUserId", Value = ParameterHelper.ConvertValue(m.CreateUserId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@ClientIp", Value = ParameterHelper.ConvertValue(m.ClientIp)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@ClientUv", Value = ParameterHelper.ConvertValue(m.ClientUv)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@ClientPv", Value = ParameterHelper.ConvertValue(m.ClientPv)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Price", Value = ParameterHelper.ConvertValue(m.Price)
            });


            var result = DbProxyFactory.Instance.Proxy.ExecuteScalar(command);

            return(int.Parse(result.ToString()));
        }
        public override bool Edit(PlayHistoryVO m)
        {
            CodeCommand command = new CodeCommand();

            command.CommandText = EDIT;

            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@AdUserId", Value = ParameterHelper.ConvertValue(m.AdUserId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@FlowUserId", Value = ParameterHelper.ConvertValue(m.FlowUserId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@AdId", Value = ParameterHelper.ConvertValue(m.AdId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@AdUrl", Value = ParameterHelper.ConvertValue(m.AdUrl)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Time", Value = ParameterHelper.ConvertValue(m.Time)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Money", Value = ParameterHelper.ConvertValue(m.Money)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@CreateDate", Value = ParameterHelper.ConvertValue(m.CreateDate)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@CreateUserId", Value = ParameterHelper.ConvertValue(m.CreateUserId)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@ClientIp", Value = ParameterHelper.ConvertValue(m.ClientIp)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@ClientUv", Value = ParameterHelper.ConvertValue(m.ClientUv)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@ClientPv", Value = ParameterHelper.ConvertValue(m.ClientPv)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Price", Value = ParameterHelper.ConvertValue(m.Price)
            });
            command.Parameters.Add(new SqlParameter()
            {
                ParameterName = "@Id", Value = ParameterHelper.ConvertValue(m.Id)
            });


            int result = DbProxyFactory.Instance.Proxy.ExecuteNonQuery(command);

            if (result >= 1)
            {
                return(true);
            }

            return(false);
        }
 public override string GetOtherConditionByModel(PlayHistoryVO m)
 {
     return("");
 }
 public override string GetOrderByModel(PlayHistoryVO m)
 {
     return("");
 }