我的批处理脚本问题

时间:2016-06-20 01:28:28

标签: batch-file

我还在学习这门语言所以请放纵。

以下代码中与我的START变量相关的条件永远不会触发,我无法弄清楚原因。如果当前行以“80 /”开头并且前一行以分号开头,然后是空格,那么该部分应该执行。可能是一个synthax错误或其他一些错误。任何帮助将不胜感激。

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div id="colour">
  <div class="foo white active" data-image="https://opensource.org/files/osi_keyhole_300X300_90ppi.png">
  </div>
  <div class="foo black" data-image="http://www.lilianricaud.com/travail-en-reseau/wp-content/uploads/2012/04/google-chrome-300x300.png">
  </div>
</div>

<div class="container">
  <img src="" alt="sample">
</div>

1 个答案:

答案 0 :(得分:0)

public partial class CountyRepository : ICountyRepository
{
    private readonly Context _context;

    public CountyRepository(IContext context)
    {
        _context = context as Context;
    }

    public County Get(int id)
    {
        return _context.County.FirstOrDefault(x => x.CountyID == id);
    }

    public County GetByCompanyCountyID(int id)
    {
        return _context.County.FirstOrDefault(x => x.CountyID == id);
    }

    public IList<County> ListOfCounties()
    {
        return _context.County.ToList()
            .OrderBy(x => x.CountyName)  
            .ToList();
    }

    public void Delete(County county)
    {
        _context.County.Remove(county);
    }

    public County Add(County county)
    {
        _context.County.Add(county);
        return county;
    }

    public County SearchByName(string county)
    {
        return _context.County.FirstOrDefault(x => x.CountyName == county);
    }
}