You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace MysqlHandling
|
|
{
|
|
[DataContract]
|
|
class DBConfig
|
|
{
|
|
[DataMember(Order = 0)]
|
|
public string ip { get; set; }
|
|
|
|
[DataMember(Order = 1)]
|
|
public int port { get; set; }
|
|
|
|
[DataMember(Order = 2)]
|
|
public string user { get; set; }
|
|
|
|
[DataMember(Order = 3)]
|
|
public string password { get; set; }
|
|
|
|
[DataMember(Order = 4)]
|
|
public string dbname { get; set; }
|
|
|
|
[DataMember(Order = 5)]
|
|
public int dbtype { get; set; }
|
|
|
|
[DataMember(Order = 6)]
|
|
public int threadCount { get; set; }
|
|
|
|
[DataMember(Order = 7)]
|
|
public int testCount { get; set; }
|
|
|
|
[DataMember(Order = 8)]
|
|
public int traceLogLevel { get; set; }
|
|
|
|
[DataMember(Order = 9)]
|
|
public int testInsert { get; set; }
|
|
|
|
[DataMember(Order = 10)]
|
|
public int testUpdate { get; set; }
|
|
|
|
[DataMember(Order = 11)]
|
|
public int testGet { get; set; }
|
|
|
|
[DataMember(Order = 12)]
|
|
public int testDelete { get; set; }
|
|
|
|
[DataMember(Order = 13)]
|
|
// uid偏移值, 用来分多次生成测试数据, 默认填0
|
|
public int uidOffset { get; set; }
|
|
}
|
|
}
|
|
|