Ejemplo n.º 1
0
 /// <summary>
 /// 写入语句片段公共方法。
 /// </summary>
 /// <param name="writer">语句写入器。</param>
 /// <param name="fragment">当前语句。</param>
 public void WriteFragment(SqlWriter writer, ISqlFragment fragment)
 {
     if (!_WriteFragmentMethods.TryGetValue(fragment.GetType(), out WriteFragmentDelegate method))
     {
         throw new NotSupportedException(string.Format(Res.NotSupportedWriteFragment, fragment.GetType()));
     }
     method(writer, fragment);
 }