title: Dapper .net loses connection string with Sybase 12 or 16
body: <p>I work with Sybase 12 and dapper.net. Everything was ok, until I made Sybase update 3817. After this update, I began to get such exception: " System.NullReferenceException:" </p>
  
  <p>trace:</p>
  
  <pre><code>   iAnywhere.Data.SQLAnywhere.SAConnection.CalledByEntityFramework() +263
     iAnywhere.Data.SQLAnywhere.SAConnection.get_ConnectionString() +538
     Dapper.Identity..ctor(String sql, Nullable`1 commandType, IDbConnection connection, Type type, Type parametersType, Type[] otherTypes) +73
     Dapper.&lt;QueryInternal&gt;d__13`1.MoveNext() +545
     System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +381
     System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
     Dapper.SqlMapper.Query(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) +218
     Dapper.SqlMapper.Query(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) +88
  </code></pre>
  
  <p>When I looked into the connection my variablу I saw, that connection string has exception:</p>
  
  <blockquote>
    <p>'MDbConnection.ConnectionString' threw an exception of type 'System.NullReferenceException'.</p>
  </blockquote>
  
  <p>I can't understand what happens in this update of sybase. All next updates of version 12 and the newest - 16 have the same trouble with dapper! But if I use ADO.Net - everything works fine!</p>