insiderProject.DAL/deposit.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Newtonsoft.Json;
using insiderProject.Common;
using insiderProject.Entity;
namespace insiderProject.DAL
{
//deposit
public partial class deposit
{
public int Exists(int Id)
{
insiderProject.Entity.insiderProjectEntities Eny = new insiderProject.Entity.insiderProjectEntities();
return Eny.deposit.Where(p => p.Id == Id).Count();
}
public int depositCount(insiderProject.Entity.deposit admo)
{
insiderProject.Entity.insiderProjectEntities Eny = new insiderProject.Entity.insiderProjectEntities();
var list=Eny.deposit.AsQueryable() ;
var query = Eny.deposit;
if (admo.Id.ToString()!="0") {
list = query.Where(p => p.Id == admo.Id);
}
if (!string.IsNullOrWhiteSpace(admo.dmoney)) {
list = query.Where(p => p.dmoney == admo.dmoney);
}
if (!string.IsNullOrWhiteSpace(admo.dremark)) {
list = query.Where(p => p.dremark == admo.dremark);
}
if (!string.IsNullOrWhiteSpace(admo.dmode)) {
list = query.Where(p => p.dmode == admo.dmode);
}
if (!string.IsNullOrWhiteSpace(admo.dparentid)) {
list = query.Where(p => p.dparentid == admo.dparentid);
}
return list.Count();
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(insiderProject.Entity.deposit admo)
{
insiderProject.Entity.insiderProjectEntities Eny = new insiderProject.Entity.insiderProjectEntities();
Eny.deposit.Add(admo);
return Eny.SaveChanges();
}
后面还有 164 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
