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.
 
 
 
 

14 lines
438 B

using System;
using Pingchuan.BeijingSafeguard.Model;
namespace Pingchuan.BeijingSafeguard.DAL
{
public class GmapNetCacheDAL : BaseDAL
{
public static GmapNetCache Get(int type, int zoom, int x, int y)
{
string sql = $@"select Tile from gmapnetcache where Type = @0 and Zoom = @1 and X = @2 and Y = @3";
return db.SingleOrDefault<GmapNetCache>(sql, type, zoom, x, y);
}
}
}