QiFeng.ZWY.Dal/SysAreaRegion.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using QiFeng.LMSD.DBUtility;
using QiFeng.LMSD.Model;
namespace QiFeng.LMSD.Dal
{
public partial class SysAreaRegionDal : BaseDal<SysAreaRegionDal>
{
#region 默认方法
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(SysAreaRegion model)
{
var strSql=new StringBuilder();
strSql.Append("insert into SysAreaRegion(");
strSql.Append("RegionName,RegionLevel,ParentId,CityCode,ADCode,CenterLng,CenterLat,ProvinceId,ProvinceName,CityId,CityName,DistrictId,DistrictName,FullName,RegionNameFullPinYin,RegionNameBriefPinYin,EditAccountId,EditAccountSource,EditIpAddress,AddTime,LatestModifyTime,IsDelete");
strSql.Append(") values (");
strSql.Append("@RegionName,@RegionLevel,@ParentId,@CityCode,@ADCode,@CenterLng,@CenterLat,@ProvinceId,@ProvinceName,@CityId,@CityName,@DistrictId,@DistrictName,@FullName,@RegionNameFullPinYin,@RegionNameBriefPinYin,@EditAccountId,@EditAccountSource,@EditIpAddress,@AddTime,@LatestModifyTime,@IsDelete");
strSql.Append(") ");
strSql.Append(";select @@IDENTITY");
SqlParameter[] parameters = {
new SqlParameter("@RegionName", SqlDbType.NVarChar,50) ,
new SqlParameter("@RegionLevel", SqlDbType.Int,4) ,
new SqlParameter("@ParentId", SqlDbType.Int,4) ,
new SqlParameter("@CityCode", SqlDbType.NVarChar,50) ,
new SqlParameter("@ADCode", SqlDbType.NVarChar,50) ,
new SqlParameter("@CenterLng", SqlDbType.Decimal,9) ,
new SqlParameter("@CenterLat", SqlDbType.Decimal,9) ,
new SqlParameter("@ProvinceId", SqlDbType.Int,4) ,
new SqlParameter("@ProvinceName", SqlDbType.NVarChar,50) ,
new SqlParameter("@CityId", SqlDbType.Int,4) ,
new SqlParameter("@CityName", SqlDbType.NVarChar,50) ,
new SqlParameter("@DistrictId", SqlDbType.Int,4) ,
new SqlParameter("@DistrictName", SqlDbType.NVarChar,50) ,
new SqlParameter("@FullName", SqlDbType.NVarChar,50) ,
new SqlParameter("@RegionNameFullPinYin", SqlDbType.NVarChar,250) ,
new SqlParameter("@RegionNameBriefPinYin", SqlDbType.NVarChar,50) ,
new SqlParameter("@EditAccountId", SqlDbType.Int,4) ,
new SqlParameter("@EditAccountSource", SqlDbType.Int,4) ,
new SqlParameter("@EditIpAddress", SqlDbType.NVarChar,15) ,
new SqlParameter("@AddTime", SqlDbType.DateTime) ,
new SqlParameter("@LatestModifyTime", SqlDbType.DateTime) ,
new SqlParameter("@IsDelete", SqlDbType.Bit,1)
};
parameters[0].Value = model.RegionName;
parameters[1].Value = model.RegionLevel;
parameters[2].Value = model.ParentId;
parameters[3].Value = model.CityCode;
parameters[4].Value = model.ADCode;
parameters[5].Value = model.CenterLng;
parameters[6].Value = model.CenterLat;
parameters[7].Value = model.ProvinceId;
parameters[8].Value = model.ProvinceName;
后面还有 167 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。