public static IList <FateUserInfo> GetUserList() { using (DapperDb db = DapperDbFactory.CreateDb()) { return(db.Query <FateUserInfo>()); } }
public static IList <LinkAddressInfo> GetLinkList(LinkAddressType type) { using (DapperDb db = DapperDbFactory.CreateDb()) { SqlQuery filter = SqlQuery <LinkAddressInfo> .Builder(db).AndWhere(o => o.LinkType, FilterExpression.Equal, (int)type); return(db.Query <LinkAddressInfo>(filter)); } }