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(sql, type, zoom, x, y); } } }