/// <summary> /// Get the <see cref="EntityInfo"/> object from the cache. /// </summary> /// If the <paramref name="type"/> has no <see cref="EntityInfo"/> then it will add the and return the <see cref="EntityInfo"/>. /// <param name="type"></param> /// <returns></returns> public static SimpleAccess.Core.Entity.EntityInfo<OracleSqlBuilder, OracleParameter> GetEntity2Info(Type type) { Core.Entity.EntityInfo<OracleSqlBuilder, OracleParameter> entityInfo = null; if (Entity2Infos.TryGetValue(type.GetHashCode(), out entityInfo)) return entityInfo; entityInfo = new Core.Entity.EntityInfo<OracleSqlBuilder, OracleParameter>(type); Entity2Infos.Add(type.GetHashCode(), entityInfo); return entityInfo; }
/// <summary> /// Get the <see cref="EntityInfo"/> object from the cache. /// </summary> /// If the <paramref name="type"/> has no <see cref="EntityInfo"/> then it will add the and return the <see cref="EntityInfo"/>. /// <param name="type"></param> /// <returns></returns> public static SimpleAccess.Core.Entity.EntityInfo <SqlServerSqlBuilder, SqlParameter> GetEntity2Info(Type type) { Core.Entity.EntityInfo <SqlServerSqlBuilder, SqlParameter> entityInfo = null; if (Entity2Infos.TryGetValue(type.GetHashCode(), out entityInfo)) { return(entityInfo); } entityInfo = new Core.Entity.EntityInfo <SqlServerSqlBuilder, SqlParameter>(type); Entity2Infos.Add(type.GetHashCode(), entityInfo); return(entityInfo); }