<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>classBlldao</Title>
			<Shortcut>classBlldao</Shortcut>
			<Description>类的代码片段包含数据库访问</Description>
			<Author>zz</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
				<SnippetType>SurroundsWith</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>name</ID>
					<ToolTip>类名</ToolTip>
					<Default>MyClass</Default>
				</Literal>
				<Literal>
					<ID>daoclass</ID>
					<ToolTip>类名</ToolTip>
					<Default>T_</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp"><![CDATA[ 
			    /// <summary>
				/// 
				/// </summary>
			public class $name$ : BLLBase
	{
		/// <summary>
        /// 
        /// </summary>
        /// <param name="dao"></param>
		public $name$(DAO dao):base(dao){

		}
		 /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<$daoclass$> GetList()
        {
            var list = dao.daoRes.context.$daoclass$.Where(it=>true).ToList();
            return list;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public $daoclass$ GetFirstOrDefault() {
            var data = dao.daoRes.context.$daoclass$.FirstOrDefault(it => true);
            return data;
        }

		$selected$$end$
	}]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>
