Пример #1
0
 private void GetDynamicOrDefaultSql(QueryInfo info)
 {
     if (info.NamedQuery == null)
     {
         if (string.IsNullOrEmpty(info.CustomSQL))//从Type获取SQL
         {
             info.CustomSQL = GetMappedOrDefaultSql(info.GetMappingType());
         }
         else//已经制定SQL,动态化!
         {
             StatementParser.ParseDynamicSql(info);
         }
     }
 }