public void Insert(MerchantOwnersFigure ownersfigure)
        {
            const string sql = @"INSERT INTO [dbo].[MerchantOwnersFigures] ([MerchantInformationId], [FileId],[Sort],[ThumbnailId])
                                      VALUES (@MerchantInformationId, @FileId,@Sort,@ThumbnailId);";

            using (var con = WriteConnection())
            {
                con.Execute(sql, ownersfigure);
            }
        }
        public async Task InsertAsync(MerchantOwnersFigure ownersfigure)
        {
            const string sql = @"INSERT INTO [dbo].[MerchantOwnersFigures] ([MerchantInformationId], [FileId],[Sort],[ThumbnailId])
                                      VALUES (@MerchantInformationId, @FileId,@Sort,@ThumbnailId);";

            using (var con = await WriteConnectionAsync())
            {
                await con.ExecuteAsync(sql, ownersfigure);
            }
        }
示例#3
0
 public void MerchantInfomationsSubmit(MerchantInformation information, MerchantOwnersFigure ownersfigure, MerchantRecommend recommend, MerchantCategory category)
 {
 }