Comments (7)
Where would you prefer to see it? I think it makes sense to have it on Execute, this way there is no need to repeat parameters for different connections.
from fsharp.data.sqlclient.
Sure, an optional param on Execute is fine. If you want to keep following what Sql TP is doing, you can do that too.
In that case, ditch the public constructor, and add the static GetDataContext()
method for creating instances. That would also have the optional connstring param. Whichever way is fine with me.
from fsharp.data.sqlclient.
In the end, we decided to expose ConnectionString as property. This way it can be overridden right on constructor call. Does it make sense to you?
from fsharp.data.sqlclient.
@dsevastianov Sounds good, thanks!
from fsharp.data.sqlclient.
@rojepp I was thinking go back to your suggestion and make connectionString as optional ctor parameter for generated command class instead of property. It makes usage simpler and TP code cleaner. What do you think?
from fsharp.data.sqlclient.
Sounds good to me!
On Oct 22, 2013 3:46 PM, "Dmitry" [email protected] wrote:
@rojepp https://github.com/rojepp I was thinking go back to your
suggestion and make connectionString as optional ctor parameter for
generated command class instead of property. It makes usage simpler and TP
code cleaner. What do you think?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-26803795
.
from fsharp.data.sqlclient.
Connection string override as parameters to generate command type.
from fsharp.data.sqlclient.
Related Issues (20)
- Dacpac support info HOT 3
- "F# Formatting" link is broken
- Can't build/run from the commandline, but can from Visual Studio 2019 HOT 2
- Question: Creating a provider without an access to DB HOT 3
- SqlEnumProvider breaks VS 2019 HOT 2
- Not platform detection Fable HOT 1
- Build is broken without full VS installation
- Fixed length binary columns in user defined table types fail when constructed HOT 8
- Cannot use User Defined Table Types with the SqlCommandProvider HOT 5
- .NET 6 support HOT 6
- One line summary of the bug HOT 2
- TVP Column Ordering is incorrect as of version 2.1.0
- Cannot use parameter name more than once in a script HOT 3
- System.Data.SqlClient is not supported on this platform. HOT 5
- Conversion failed when using User Defined Table Types HOT 1
- Any 2023 tricks for running on Windows? HOT 3
- NullReferenceException in SqlConnection.UseLocally HOT 1
- Support for 'Active Directory Interactive' authentication HOT 3
- dotnet SDK projects using FSharp.Core version 7.0.0 breaks at runtime HOT 3
- SQL LIKE operation doesn't recognize variable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.data.sqlclient.