mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update Demo
This commit is contained in:
118
Src/Asp.Net/SqlServerTest/OldTest/BugTest/Bug1.cs
Normal file
118
Src/Asp.Net/SqlServerTest/OldTest/BugTest/Bug1.cs
Normal file
@@ -0,0 +1,118 @@
|
||||
using Models;
|
||||
using OrmTest.Demo;
|
||||
using OrmTest.Models;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace OrmTest.BugTest
|
||||
{
|
||||
public class Bug1
|
||||
{
|
||||
public static SqlSugarClient GetInstance()
|
||||
{
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
||||
{
|
||||
InitKeyType = InitKeyType.Attribute,
|
||||
ConnectionString = Config.ConnectionString,
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
db.Aop.OnLogExecuting = (sql, pars) =>
|
||||
{
|
||||
Console.WriteLine(sql + "\r\n" + db.Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value)));
|
||||
Console.WriteLine();
|
||||
};
|
||||
return db;
|
||||
}
|
||||
public void Init()
|
||||
{
|
||||
var communityId = "";
|
||||
var buildId = "";
|
||||
var unitId = "";
|
||||
var keyword = "";
|
||||
GetInstance().CodeFirst.InitTables(typeof(MainTable), typeof(SubTable), typeof(Brand), typeof(VendorAndBrand));
|
||||
GetInstance().Queryable<MainTable>().Where(u =>
|
||||
(u.CommunityID == communityId || SqlFunc.IsNullOrEmpty(communityId)) &&
|
||||
(SqlFunc.Contains(u.BuildID, buildId) || SqlFunc.IsNullOrEmpty(buildId)) &&
|
||||
(SqlFunc.Contains(u.UnitID, unitId) || SqlFunc.IsNullOrEmpty(unitId)) &&
|
||||
(SqlFunc.Contains(u.RoomNumber, keyword) || SqlFunc.Contains(u.RoomerName, keyword) ||
|
||||
SqlFunc.Contains(u.HousePlace, keyword) || SqlFunc.Contains(u.UnitName, keyword) ||
|
||||
SqlFunc.Contains(u.BuildName, keyword) || SqlFunc.IsNullOrEmpty(keyword)))
|
||||
.GroupBy(ru => new { ru.RoomNumber, ru.RoomID })
|
||||
.Select(ru => new
|
||||
{
|
||||
RoomNumber = SqlFunc.AggregateMax(ru.RoomNumber),
|
||||
CountRoomer = SqlFunc.AggregateCount(ru.RoomerName),
|
||||
RoomID = SqlFunc.AggregateMax(ru.RoomID),
|
||||
Owner = SqlFunc.Subqueryable<SubTable>().Where(r => r.RoomID == ru.RoomID && SqlFunc.Equals(r.RoomUserType, "业主") && SqlFunc.Equals(r.RoomUserType, "业主")).Select(s => s.RoomerName)
|
||||
}).OrderBy((r) => r.RoomNumber, type: OrderByType.Desc).ToPageListAsync(1, 2).Wait();
|
||||
|
||||
GetInstance().Updateable<Student>().UpdateColumns(it =>
|
||||
new Student()
|
||||
{
|
||||
Name = "a".ToString(),
|
||||
CreateTime = DateTime.Now.AddDays(-1)
|
||||
|
||||
}
|
||||
).Where(it => it.Id == 1).ExecuteCommand();
|
||||
|
||||
|
||||
var list = GetInstance().Queryable<Student, School>((st, sc) => new object[] {
|
||||
JoinType.Left,st.SchoolId==sc.Id&&st.CreateTime==DateTime.Now.AddDays(-1)
|
||||
})
|
||||
.Where(st => st.Name == "jack").ToList();
|
||||
|
||||
|
||||
GetInstance().Updateable<BugStudent>().Where(it => true).UpdateColumns(it => new BugStudent() { Float = 11 }).ExecuteCommand();
|
||||
var reslut = GetInstance().Queryable<BugStudent>().ToList();
|
||||
|
||||
var list2 = GetInstance().Queryable<Brand, VendorAndBrand>((b, vb) => new object[] {
|
||||
JoinType.Left,b.Id == vb.BrandId
|
||||
})
|
||||
.Where((b) => b.BrandType == 1).Select((b) => b).ToList();
|
||||
|
||||
|
||||
var list3 = GetInstance().Queryable<Brand, VendorAndBrand>((b, vb) =>
|
||||
b.Id == vb.BrandId)
|
||||
. Where((b) => b.BrandType == 1).Select((b) => b).ToList();
|
||||
|
||||
|
||||
var query = GetInstance().Queryable<Student>().Select(o => o);
|
||||
|
||||
var result = query.ToList();
|
||||
|
||||
}
|
||||
|
||||
|
||||
[SugarTable("student")]
|
||||
public class BugStudent
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
public string name { get; set; }
|
||||
public float? Float { get; set; }
|
||||
|
||||
}
|
||||
public class MainTable
|
||||
{
|
||||
public string CommunityID { get; internal set; }
|
||||
public string BuildID { get; internal set; }
|
||||
public string UnitID { get; internal set; }
|
||||
public string RoomNumber { get; internal set; }
|
||||
public string HousePlace { get; internal set; }
|
||||
public string BuildName { get; internal set; }
|
||||
public string RoomID { get; internal set; }
|
||||
public string UnitName { get; internal set; }
|
||||
public string RoomerName { get; internal set; }
|
||||
}
|
||||
public class SubTable
|
||||
{
|
||||
public string RoomID { get; internal set; }
|
||||
public string RoomUserType { get; internal set; }
|
||||
public string RoomerName { get; internal set; }
|
||||
}
|
||||
}
|
||||
}
|
330
Src/Asp.Net/SqlServerTest/OldTest/BugTest/Bug2.cs
Normal file
330
Src/Asp.Net/SqlServerTest/OldTest/BugTest/Bug2.cs
Normal file
@@ -0,0 +1,330 @@
|
||||
using OrmTest.Models;
|
||||
using SqlSugar;
|
||||
using sugarentity;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using TCM.Manager.Models;
|
||||
|
||||
namespace OrmTest.BugTest
|
||||
{
|
||||
public class Bug2
|
||||
{
|
||||
public SqlSugarClient DB
|
||||
{
|
||||
get
|
||||
{
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
||||
{
|
||||
InitKeyType = InitKeyType.Attribute,
|
||||
ConnectionString = Config.ConnectionString,
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
db.Aop.OnLogExecuting = (sql, pars) =>
|
||||
{
|
||||
Console.WriteLine(sql + "\r\n" + db.Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value)));
|
||||
Console.WriteLine();
|
||||
};
|
||||
return db;
|
||||
}
|
||||
}
|
||||
public void Init()
|
||||
{
|
||||
var x2 = DB.Queryable<School>().Where(x => x.Id == SqlFunc.Subqueryable<School>().Where(y => y.Id == SqlFunc.Subqueryable<Student>().Where(yy => y.Id == x.Id).Select(yy => yy.Id)).Select(y => y.Id)).ToSql();
|
||||
if (!x2.Key.Contains("STudent"))
|
||||
{
|
||||
// throw new Exception("bug2 error");
|
||||
}
|
||||
|
||||
|
||||
|
||||
var UserNameOrName = "111";
|
||||
var OrganizationUnitId = 0;
|
||||
var RoleId = 0;
|
||||
var sql = DB.Queryable<User>().//一对多的子查询
|
||||
WhereIF(!string.IsNullOrWhiteSpace(UserNameOrName), t1 => t1.Name.Contains(UserNameOrName)).
|
||||
Where(t1 =>
|
||||
SqlFunc.Subqueryable<UserOrganizationUnit>().
|
||||
Where(t2 => t2.UserId == t1.Id).
|
||||
WhereIF(OrganizationUnitId > 0, t2 => t2.OrganizationUnitId == OrganizationUnitId).Any())
|
||||
// Where(t1 => SqlFunc.Subqueryable<UserRole>().
|
||||
//Where(t3 => t3.UserId == t1.Id).
|
||||
//WhereIF(RoleId > 0, t3 => t3.RoleId == RoleId).Any())
|
||||
.Select(t1 => new User { Id = SqlFunc.GetSelfAndAutoFill(t1.Id) }).ToSql();
|
||||
|
||||
var model = DB.Queryable<ClientsModel, VipAccountsModel, AccountsModel, tLogonHistoryModel, VipBenefitsModel, LevelSettingModel, JewelsModel>((a, b, c, d, e, f, g) => new object[]{
|
||||
JoinType.Left,a.ClientID==b.ClientID,
|
||||
JoinType.Left,a.ClientID==c.ClientID&&c.TournamentID==0,
|
||||
JoinType.Left,a.ClientID==d.ClientID,
|
||||
JoinType.Left,(e.MinVipCredit<=b.VipCredit&&e.MaxVipCredit>=b.VipCredit) && (e.MinConsumeAmount<=b.AccumulatedConsumeAmount&&e.MaxConsumeAmount>=b.AccumulatedConsumeAmount),
|
||||
JoinType.Left,(c.ExperiencePoints>=f.MinExperiencePoints && c.ExperiencePoints<f.MaxExperiencePoints) || (c.ExperiencePoints > f.MaxExperiencePoints && f.UserLevel== 30),
|
||||
JoinType.Left,g.ClientID==a.ClientID
|
||||
})
|
||||
.WhereIF(true, (a, b, c, d, e, f, g) => a.ClientID == 1)
|
||||
.WhereIF(!string.IsNullOrEmpty("a"), (a, b, c, d, e, f, g) => a.NickName == "a")
|
||||
.Select((a, b, c, d, e, f, g) => new
|
||||
{
|
||||
GoldAmount = SqlFunc.Subqueryable<ExposureModel>().Where(s => s.TournamentID == 0 && s.ClientID == a.ClientID).Sum(s => SqlFunc.IsNull(SqlFunc.AggregateSum(s.Exposure), 0)),
|
||||
ClientID = a.ClientID,
|
||||
NickName = a.NickName,
|
||||
UserChannel = a.UserChannel,
|
||||
CountryCode = d.CountryCode,
|
||||
Platform = a.Platform,
|
||||
Email = a.Email,
|
||||
PhoneNumber = a.PhoneNumber,
|
||||
RegisteredTime = a.RegisteredTime,
|
||||
DiamondAmount = SqlFunc.IsNull(g.JewelCount, 0),
|
||||
AccumulatedRechargeAmount = SqlFunc.IsNull(b.AccumulatedRechargeAmount, 0),
|
||||
VipLevel = SqlFunc.IsNull(e.VipLevel, 0),
|
||||
UserLevel = SqlFunc.IsNull(f.UserLevel, 0)
|
||||
})
|
||||
.With(SqlWith.NoLock)
|
||||
.ToSql();
|
||||
|
||||
var _sql = DB.Insertable(new UserInfo
|
||||
{
|
||||
BrandId = -1,
|
||||
UserLevel = 1
|
||||
}).IgnoreColumns(m => new { m.BlockingTime, m.CreditUpdatetime }).ToSql();
|
||||
|
||||
var _sql2 = DB.Insertable(new UserInfo
|
||||
{
|
||||
BrandId = -1,
|
||||
UserLevel = 1
|
||||
}).IgnoreColumns(m => new { m.UserId }).ToSql();
|
||||
var _sql3 = DB.Updateable(new UserInfo
|
||||
{
|
||||
BrandId = -1,
|
||||
UserLevel = 1
|
||||
}).IgnoreColumns(m => new { m.CreditUpdatetime, m.UserId }).ToSql();
|
||||
DB.CodeFirst.InitTables(typeof(DataTest));
|
||||
DB.Insertable(new DataTest()).ExecuteCommand();
|
||||
|
||||
// 初始化实体表
|
||||
DB.CodeFirst.SetStringDefaultLength(255).InitTables(typeof(TestA));
|
||||
|
||||
var testa = new TestA();
|
||||
testa.Col1 = "2333333";
|
||||
testa.Col3 = "444";
|
||||
|
||||
DB.Saveable(testa).ExecuteCommand();
|
||||
|
||||
|
||||
Guid newCarTypePictureId = Guid.Empty;
|
||||
Guid carTypePictureId = Guid.Empty;
|
||||
DB.CodeFirst.InitTables(typeof(Picture),typeof(JobPlan));
|
||||
DB.Updateable<Picture>()
|
||||
.UpdateColumns(p => p.Value == SqlFunc.Subqueryable<Picture>()
|
||||
.Where(pp => pp.ID == newCarTypePictureId)
|
||||
.Select(pp => pp.Value))
|
||||
.Where(p => p.ID == carTypePictureId)
|
||||
.ExecuteCommand();
|
||||
DB.Updateable<Picture>()
|
||||
.UpdateColumns(p => p.Value == SqlFunc.Subqueryable<Picture>()
|
||||
.Select(pp => pp.Value))
|
||||
|
||||
.Where(p => p.ID == carTypePictureId).ExecuteCommand();
|
||||
var list = new List<JobPlan>()
|
||||
{
|
||||
new JobPlan() { },
|
||||
new JobPlan() { }
|
||||
};
|
||||
DB.Updateable(new JobPlan() { })
|
||||
.WhereColumns(s => new { s.CmdNo })
|
||||
.UpdateColumns(s => new
|
||||
{
|
||||
s.HeatNo,
|
||||
s.CmdNo
|
||||
}).ExecuteCommand();
|
||||
DB.CodeFirst.InitTables(typeof(VMaterialInfo),typeof(TStock),typeof(TTempStock));
|
||||
var GoodsList = DB.Queryable<VMaterialInfo, TStock>((vmg, ts) => new object[] {
|
||||
JoinType.Left,vmg.FMICode==ts.FMICode
|
||||
})
|
||||
.Select((vmg, ts) => new
|
||||
{
|
||||
|
||||
AbleQty = SqlFunc.ToInt32(ts.FQty - SqlFunc.Subqueryable<TTempStock>().Where(s => s.FMICode == vmg.FMICode && s.FK_Store =="")
|
||||
.Select(s => SqlFunc.AggregateSum(s.FKCSL)))
|
||||
}).ToList();
|
||||
|
||||
var GoodsList2 = DB.Queryable<VMaterialInfo, TStock>((vmg, ts) => new object[] {
|
||||
JoinType.Left,vmg.FMICode==ts.FMICode
|
||||
})
|
||||
.Where((vmg, ts) => ts.FK_Store == "" && vmg.FMICode == vmg.FMICode)
|
||||
.Select((vmg, ts) => new
|
||||
{
|
||||
PKID = vmg.PKID,
|
||||
FMICode = vmg.FMICode,
|
||||
FMIName = vmg.FMIName,
|
||||
FGauge = vmg.FGauge,
|
||||
FBIName = vmg.FBIName,
|
||||
FK_FOrigin = vmg.FK_FOrigin,
|
||||
FOEM = vmg.FOEM,
|
||||
FSIName = vmg.FSIName,
|
||||
FUIName = vmg.FUIName,
|
||||
OutFQty = SqlFunc.ToInt32(ts.FQty)
|
||||
,
|
||||
InFQty = SqlFunc.Subqueryable<TStock>().Where(s => s.FMICode == ts.FMICode && s.FK_Store == "").Select(s => SqlFunc.ToInt32(SqlFunc.IsNull(s.FQty, 0)))
|
||||
,
|
||||
TempQty = SqlFunc.IsNull(SqlFunc.Subqueryable<TTempStock>().Where(s => s.FMICode == vmg.FMICode && s.FK_Store == "")
|
||||
.GroupBy(s => new { s.FMICode, s.FK_Store })
|
||||
.Select(s => SqlFunc.AggregateSum(SqlFunc.ToInt32(s.FKCSL))), 0)
|
||||
,
|
||||
AbleQty = ts.FQty - SqlFunc.Subqueryable<TTempStock>().Where(s => s.FMICode == vmg.FMICode && s.FK_Store == "")
|
||||
.Select(s => SqlFunc.AggregateSum(s.FKCSL))
|
||||
}).ToList();
|
||||
DB.CodeFirst.InitTables<h5linkpassloginfo, logtype>();
|
||||
DB.Updateable<h5linkpassloginfo>().UpdateColumns(it =>
|
||||
new h5linkpassloginfo()
|
||||
{
|
||||
LogKeyId = SqlFunc.Subqueryable<logtype>().Where(s => s.LogKey == "openpage").Select(s => s.Id),
|
||||
StrVal = "sdsdsdsd"
|
||||
}).Where(it => it.Id == 1).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 表示作业计划表,保存用户确认的作业计划。
|
||||
/// </summary>
|
||||
[SugarTable("PL_JOB_PLAN")]
|
||||
public class JobPlan
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置炉次号。
|
||||
/// </summary>
|
||||
public string HeatNo { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置制造命令号。
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "PONO")]
|
||||
public string CmdNo { get; set; }
|
||||
}
|
||||
public partial class Picture
|
||||
{
|
||||
public Picture()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public Guid ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public string Value { get; set; }
|
||||
|
||||
}
|
||||
///<summary>
|
||||
///用户信息表
|
||||
///</summary>
|
||||
public partial class User
|
||||
{
|
||||
///<summary>
|
||||
/// 描述:主键
|
||||
/// 默认值:
|
||||
/// 是否可空: False
|
||||
///</summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
}
|
||||
public class Base : ModelContext
|
||||
{
|
||||
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
|
||||
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public string Col3 { get; set; }
|
||||
}
|
||||
|
||||
public class TestA : Base
|
||||
{
|
||||
public string Col1 { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string Col2 { get; set; }
|
||||
}
|
||||
public partial class UserOrganizationUnit
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
public long UserId { get; set; }
|
||||
|
||||
public long OrganizationUnitId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
///<summary>
|
||||
///用户角色关系表
|
||||
///</summary>
|
||||
public partial class UserRole
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
public long UserId { get; set; }
|
||||
|
||||
public int RoleId { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// VmallUser 实体
|
||||
/// </summary>
|
||||
[SugarTable("vmall_user")]
|
||||
public class UserInfo
|
||||
{
|
||||
#region 属性
|
||||
|
||||
public int UserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "brand_id")]
|
||||
public int BrandId { get; set; }
|
||||
/// <summary>
|
||||
/// 用户等级1普通 2高级 0黑名单
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "user_level")]
|
||||
public byte UserLevel { get; set; }
|
||||
/// <summary>
|
||||
/// 拉黑时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "blocking_time")]
|
||||
public DateTime BlockingTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "credit_updatetime")]
|
||||
public DateTime CreditUpdatetime { get; set; }
|
||||
#endregion
|
||||
}
|
||||
|
||||
public class DataTest {
|
||||
[SugarColumn( ColumnDataType = "time",IsNullable =true)]
|
||||
public TimeSpan? dateTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,95 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("Accounts")]
|
||||
public class AccountsModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public AccountsModel()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 ClientID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 TournamentID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal ExperiencePoints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal RewardPoints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal Payout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Byte[] TS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.DateTime RegisteredTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 GoldBadges { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 SilverBadges { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 CurrentLevelMinPoints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 NextLevelRequiredPoints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 UserLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.String CorrelationAccountID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal Energy { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,67 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("Clients")]
|
||||
public class ClientsModel
|
||||
{
|
||||
public long ClientID { get; set; }
|
||||
|
||||
public long ParentClientID { get; set; }
|
||||
|
||||
public string RefClientID { get; set; }
|
||||
|
||||
public string ClientName { get; set; }
|
||||
|
||||
public string Password { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public bool PhoneNumberConfirmed { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public bool EmailConfirmed { get; set; }
|
||||
|
||||
public string AvatarID { get; set; }
|
||||
|
||||
public string AvatarCustomization { get; set; }
|
||||
|
||||
public DateTime RegisteredTime { get; set; }
|
||||
|
||||
public string NickName { get; set; }
|
||||
|
||||
public int UserType { get; set; }
|
||||
|
||||
public string UserSource { get; set; }
|
||||
|
||||
public string UserDeviceUniqueIdentifier { get; set; }
|
||||
|
||||
public string UserDeviceModel { get; set; }
|
||||
|
||||
public int TimeZoneID { get; set; }
|
||||
|
||||
public string UserChannel { get; set; }
|
||||
|
||||
public string IDFA { get; set; }
|
||||
|
||||
public string CorrelationPlayerID { get; set; }
|
||||
|
||||
public string DeviceToken { get; set; }
|
||||
|
||||
public int Language { get; set; }
|
||||
|
||||
public int Platform { get; set; }
|
||||
|
||||
public string AdsID { get; set; }
|
||||
|
||||
public string SocialEmail { get; set; }
|
||||
|
||||
public string ClientIdentity { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,49 @@
|
||||
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("Exposure")]
|
||||
public class ExposureModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 ClientID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 TournamentID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 NodeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 Period { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal Exposure { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Byte[] TS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 ExtraMatchID { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("Jewels")]
|
||||
public class JewelsModel
|
||||
{
|
||||
public long ClientID { get; set; }
|
||||
|
||||
public decimal JewelCount { get; set; }
|
||||
|
||||
public int PropType { get; set; }
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,65 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("LevelSetting")]
|
||||
public class LevelSettingModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public LevelSettingModel()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 UserLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal MinExperiencePoints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal MaxExperiencePoints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.String UnlockAppModules { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 RouletteLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.String LevelUpRemindTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.String LevelUpRemindSubTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.String LevelUpRemindDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 FortuneRouletteLevel { get; set; }
|
||||
}
|
||||
}
|
158
Src/Asp.Net/SqlServerTest/OldTest/BugTest/BugModels/TStock.cs
Normal file
158
Src/Asp.Net/SqlServerTest/OldTest/BugTest/BugModels/TStock.cs
Normal file
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
|
||||
namespace OrmTest.BugTest
|
||||
{
|
||||
|
||||
public partial class TStock
|
||||
{
|
||||
public TStock()
|
||||
{ }
|
||||
#region Model
|
||||
private string _pkid;
|
||||
private string _fk_store;
|
||||
private string _fstorename;
|
||||
private string _fmicode;
|
||||
private string _fminame;
|
||||
private decimal _fqty = 0M;
|
||||
private string _fremark;
|
||||
private DateTime? _fupdatetime = DateTime.Now;
|
||||
private string _flaster;
|
||||
private string _fk_fsp_id;
|
||||
private string _fspname;
|
||||
private string _fk_sfsp_id;
|
||||
private string _sfspname;
|
||||
private decimal? _fprice = 0M;
|
||||
private string _fk_materialinfo;
|
||||
private decimal? _stocktotalcost = 0M;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PKID
|
||||
{
|
||||
set { _pkid = value; }
|
||||
get { return _pkid; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_Store
|
||||
{
|
||||
set { _fk_store = value; }
|
||||
get { return _fk_store; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FStoreName
|
||||
{
|
||||
set { _fstorename = value; }
|
||||
get { return _fstorename; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FMICode
|
||||
{
|
||||
set { _fmicode = value; }
|
||||
get { return _fmicode; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FMIName
|
||||
{
|
||||
set { _fminame = value; }
|
||||
get { return _fminame; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal FQty
|
||||
{
|
||||
set { _fqty = value; }
|
||||
get { return _fqty; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FRemark
|
||||
{
|
||||
set { _fremark = value; }
|
||||
get { return _fremark; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime? FUpdateTime
|
||||
{
|
||||
set { _fupdatetime = value; }
|
||||
get { return _fupdatetime; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FLaster
|
||||
{
|
||||
set { _flaster = value; }
|
||||
get { return _flaster; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_FSP_ID
|
||||
{
|
||||
set { _fk_fsp_id = value; }
|
||||
get { return _fk_fsp_id; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FSPName
|
||||
{
|
||||
set { _fspname = value; }
|
||||
get { return _fspname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_SFSP_ID
|
||||
{
|
||||
set { _fk_sfsp_id = value; }
|
||||
get { return _fk_sfsp_id; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SFSPName
|
||||
{
|
||||
set { _sfspname = value; }
|
||||
get { return _sfspname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FPrice
|
||||
{
|
||||
set { _fprice = value; }
|
||||
get { return _fprice; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_Materialinfo
|
||||
{
|
||||
set { _fk_materialinfo = value; }
|
||||
get { return _fk_materialinfo; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 库存总成本
|
||||
/// </summary>
|
||||
public decimal? stockTotalCost
|
||||
{
|
||||
set { _stocktotalcost = value; }
|
||||
get { return _stocktotalcost; }
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
|
||||
namespace OrmTest.BugTest
|
||||
{
|
||||
public partial class TTempStock
|
||||
{
|
||||
public TTempStock()
|
||||
{ }
|
||||
#region Model
|
||||
private string _pkid;
|
||||
private string _fk_store;
|
||||
private string _fstore;
|
||||
private string _fmicode;
|
||||
private string _fminame;
|
||||
private decimal _fkcsl = 0M;
|
||||
private string _fbillno;
|
||||
private string _fbilltype;
|
||||
private string _fremark;
|
||||
private DateTime? _fupdatetime;
|
||||
private string _fk_materialinfo;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PKID
|
||||
{
|
||||
set { _pkid = value; }
|
||||
get { return _pkid; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_Store
|
||||
{
|
||||
set { _fk_store = value; }
|
||||
get { return _fk_store; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FStore
|
||||
{
|
||||
set { _fstore = value; }
|
||||
get { return _fstore; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FMICode
|
||||
{
|
||||
set { _fmicode = value; }
|
||||
get { return _fmicode; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FMIName
|
||||
{
|
||||
set { _fminame = value; }
|
||||
get { return _fminame; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal FKCSL
|
||||
{
|
||||
set { _fkcsl = value; }
|
||||
get { return _fkcsl; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FBillNo
|
||||
{
|
||||
set { _fbillno = value; }
|
||||
get { return _fbillno; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FBillType
|
||||
{
|
||||
set { _fbilltype = value; }
|
||||
get { return _fbilltype; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FRemark
|
||||
{
|
||||
set { _fremark = value; }
|
||||
get { return _fremark; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime? FUpdateTime
|
||||
{
|
||||
set { _fupdatetime = value; }
|
||||
get { return _fupdatetime; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_Materialinfo
|
||||
{
|
||||
set { _fk_materialinfo = value; }
|
||||
get { return _fk_materialinfo; }
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,447 @@
|
||||
using System;
|
||||
|
||||
namespace OrmTest.BugTest
|
||||
{
|
||||
|
||||
|
||||
public partial class VMaterialInfo
|
||||
{
|
||||
public VMaterialInfo()
|
||||
{ }
|
||||
#region Model
|
||||
private string _pkid;
|
||||
private string _fmicode;
|
||||
private string _fminame;
|
||||
private string _fpy;
|
||||
private string _fsiname;
|
||||
private string _fgauge;
|
||||
private string _foem;
|
||||
private string _fk_forigin;
|
||||
private string _fselfcode;
|
||||
private decimal? _flength;
|
||||
private decimal? _fwidth;
|
||||
private decimal? _fhigh;
|
||||
private decimal? _fweight;
|
||||
private bool _fishalf;
|
||||
private string _fbiname;
|
||||
private string _fuiname;
|
||||
private string _flsname;
|
||||
private int? _finboxqty;
|
||||
private string _fperformancetype;
|
||||
private bool _fassembly;
|
||||
private string _fptname;
|
||||
private decimal? _fretailprice;
|
||||
private decimal? _ftradeprice;
|
||||
private decimal? _fminimumprice;
|
||||
private decimal? _fminbuyqty;
|
||||
private string _fmanufacturernum;
|
||||
private string _fciname;
|
||||
private string _fspname;
|
||||
private string _deffspname;
|
||||
private DateTime? _fregdate;
|
||||
private string _fremark;
|
||||
private string _fadder;
|
||||
private string _bakspfspname;
|
||||
private string _fftname;
|
||||
private string _fstoretype;
|
||||
private string _fstate;
|
||||
private DateTime? _faddtime;
|
||||
private string _fk_seriesinfo;
|
||||
private string _fk_brandinfo;
|
||||
private string _fk_unitinfo;
|
||||
private string _fk_lablestyle;
|
||||
private string _fk_pricetype;
|
||||
private string _fk_clientinfo;
|
||||
private string _fk_storeplace;
|
||||
private string _fk_baksp;
|
||||
private string _fk_adder;
|
||||
private string _fk_flowtype;
|
||||
private string _lfptname;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PKID
|
||||
{
|
||||
set { _pkid = value; }
|
||||
get { return _pkid; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FMICode
|
||||
{
|
||||
set { _fmicode = value; }
|
||||
get { return _fmicode; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FMIName
|
||||
{
|
||||
set { _fminame = value; }
|
||||
get { return _fminame; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FPY
|
||||
{
|
||||
set { _fpy = value; }
|
||||
get { return _fpy; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FSIName
|
||||
{
|
||||
set { _fsiname = value; }
|
||||
get { return _fsiname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FGauge
|
||||
{
|
||||
set { _fgauge = value; }
|
||||
get { return _fgauge; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FOEM
|
||||
{
|
||||
set { _foem = value; }
|
||||
get { return _foem; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_FOrigin
|
||||
{
|
||||
set { _fk_forigin = value; }
|
||||
get { return _fk_forigin; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FSelfCode
|
||||
{
|
||||
set { _fselfcode = value; }
|
||||
get { return _fselfcode; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FLength
|
||||
{
|
||||
set { _flength = value; }
|
||||
get { return _flength; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FWidth
|
||||
{
|
||||
set { _fwidth = value; }
|
||||
get { return _fwidth; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FHigh
|
||||
{
|
||||
set { _fhigh = value; }
|
||||
get { return _fhigh; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FWeight
|
||||
{
|
||||
set { _fweight = value; }
|
||||
get { return _fweight; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool FIsHalf
|
||||
{
|
||||
set { _fishalf = value; }
|
||||
get { return _fishalf; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FBIName
|
||||
{
|
||||
set { _fbiname = value; }
|
||||
get { return _fbiname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FUIName
|
||||
{
|
||||
set { _fuiname = value; }
|
||||
get { return _fuiname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FLSName
|
||||
{
|
||||
set { _flsname = value; }
|
||||
get { return _flsname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int? FInBoxQty
|
||||
{
|
||||
set { _finboxqty = value; }
|
||||
get { return _finboxqty; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FPerformanceType
|
||||
{
|
||||
set { _fperformancetype = value; }
|
||||
get { return _fperformancetype; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool FAssembly
|
||||
{
|
||||
set { _fassembly = value; }
|
||||
get { return _fassembly; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FPTName
|
||||
{
|
||||
set { _fptname = value; }
|
||||
get { return _fptname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FRetailPrice
|
||||
{
|
||||
set { _fretailprice = value; }
|
||||
get { return _fretailprice; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FTradePrice
|
||||
{
|
||||
set { _ftradeprice = value; }
|
||||
get { return _ftradeprice; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FMinimumPrice
|
||||
{
|
||||
set { _fminimumprice = value; }
|
||||
get { return _fminimumprice; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public decimal? FMinBuyQty
|
||||
{
|
||||
set { _fminbuyqty = value; }
|
||||
get { return _fminbuyqty; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FManufacturerNum
|
||||
{
|
||||
set { _fmanufacturernum = value; }
|
||||
get { return _fmanufacturernum; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FCIName
|
||||
{
|
||||
set { _fciname = value; }
|
||||
get { return _fciname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FSPName
|
||||
{
|
||||
set { _fspname = value; }
|
||||
get { return _fspname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DefFSPName
|
||||
{
|
||||
set { _deffspname = value; }
|
||||
get { return _deffspname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime? FRegDate
|
||||
{
|
||||
set { _fregdate = value; }
|
||||
get { return _fregdate; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FRemark
|
||||
{
|
||||
set { _fremark = value; }
|
||||
get { return _fremark; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FAdder
|
||||
{
|
||||
set { _fadder = value; }
|
||||
get { return _fadder; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BakSPFSPName
|
||||
{
|
||||
set { _bakspfspname = value; }
|
||||
get { return _bakspfspname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FFTName
|
||||
{
|
||||
set { _fftname = value; }
|
||||
get { return _fftname; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FStoreType
|
||||
{
|
||||
set { _fstoretype = value; }
|
||||
get { return _fstoretype; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FState
|
||||
{
|
||||
set { _fstate = value; }
|
||||
get { return _fstate; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime? FAddTime
|
||||
{
|
||||
set { _faddtime = value; }
|
||||
get { return _faddtime; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_SeriesInfo
|
||||
{
|
||||
set { _fk_seriesinfo = value; }
|
||||
get { return _fk_seriesinfo; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_BrandInfo
|
||||
{
|
||||
set { _fk_brandinfo = value; }
|
||||
get { return _fk_brandinfo; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_UnitInfo
|
||||
{
|
||||
set { _fk_unitinfo = value; }
|
||||
get { return _fk_unitinfo; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_LableStyle
|
||||
{
|
||||
set { _fk_lablestyle = value; }
|
||||
get { return _fk_lablestyle; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_PriceType
|
||||
{
|
||||
set { _fk_pricetype = value; }
|
||||
get { return _fk_pricetype; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_ClientInfo
|
||||
{
|
||||
set { _fk_clientinfo = value; }
|
||||
get { return _fk_clientinfo; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_StorePlace
|
||||
{
|
||||
set { _fk_storeplace = value; }
|
||||
get { return _fk_storeplace; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_BakSP
|
||||
{
|
||||
set { _fk_baksp = value; }
|
||||
get { return _fk_baksp; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_Adder
|
||||
{
|
||||
set { _fk_adder = value; }
|
||||
get { return _fk_adder; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FK_FlowType
|
||||
{
|
||||
set { _fk_flowtype = value; }
|
||||
get { return _fk_flowtype; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LFPTName
|
||||
{
|
||||
set { _lfptname = value; }
|
||||
get { return _lfptname; }
|
||||
}
|
||||
#endregion Model
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,45 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("VipAccounts")]
|
||||
public class VipAccountsModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public VipAccountsModel()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int64 ClientID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 VipCredit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 VipLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal AccumulatedRechargeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal AccumulatedConsumeAmount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,100 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("VipBenefits")]
|
||||
public class VipBenefitsModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public VipBenefitsModel()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 VipLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 MinVipCredit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 MaxVipCredit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal MinRechargeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal MaxRechargeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal RechargeBenefit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal RechargeRebate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal SoloWonBenefit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 RouletteLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Int32 FortuneRouletteLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal MinConsumeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal MaxConsumeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Boolean RewardTournamentEnable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Decimal FortuneRouletteRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Boolean EnableVipService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Boolean EnableTransfer { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using SqlSugar;
|
||||
|
||||
namespace sugarentity
|
||||
{
|
||||
///<summary>
|
||||
///
|
||||
///</summary>
|
||||
[SugarTable("h5linkpassloginfo")]
|
||||
public partial class h5linkpassloginfo
|
||||
{
|
||||
public h5linkpassloginfo()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int LogKeyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public string SessionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:0:外部用户 1:内部用户
|
||||
/// Default:0
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public byte Inside { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int H5PackageId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int LinkPassId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int LinkType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public int? LinkBusinessTemplateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public int? LinkBusinessObjectId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public int? IntVal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string StrVal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string JsonVal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int ClientIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public int ServerIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public string UserAgentHashKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string OtherLogsGuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:current_timestamp()
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public DateTime Intime { get; set; }
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using SqlSugar;
|
||||
|
||||
namespace sugarentity
|
||||
{
|
||||
///<summary>
|
||||
///
|
||||
///</summary>
|
||||
[SugarTable("logtype")]
|
||||
public partial class logtype
|
||||
{
|
||||
public logtype()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public string LogKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string KeyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:NULL
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:0:否 1:是
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public byte IsKeyNode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:
|
||||
/// Default:current_timestamp()
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public DateTime InTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,47 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TCM.Manager.Models
|
||||
{
|
||||
[SugarTable("tLogonHistory")]
|
||||
public class tLogonHistoryModel
|
||||
{
|
||||
public long ClientID { get; set;}
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
public int Type { get; set;}
|
||||
|
||||
public string IPAddress { get; set; }
|
||||
|
||||
public string Location { get; set; }
|
||||
|
||||
public string TimeZone { get; set; }
|
||||
|
||||
public string CountryName { get; set; }
|
||||
|
||||
public string CountryCode { get; set; }
|
||||
|
||||
public string RegionName { get; set;}
|
||||
|
||||
public string RegionCode { get; set; }
|
||||
|
||||
public string CityName { get; set; }
|
||||
|
||||
public string CityCode { get; set; }
|
||||
|
||||
public string Version { get; set;}
|
||||
|
||||
public string OriginalCountryCode { get; set; }
|
||||
|
||||
public int DeviceVirtualizeModel { get; set; }
|
||||
|
||||
public int DeviceCPUArchitecture { get; set; }
|
||||
|
||||
public int DeviceVirtualizeIndexNumber { get; set;}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user