linq2db / docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation sources and build scripts
Documentation sources and build scripts
Review existing issues in other repositories and move them here if they are related to documentation
Now pipelines build for PR fails due to attempt to use github PAT from PR, see #24 failures
Your readme is outdated. .NET core supports System.Configuration so you can read app.config normally.
Also Microsoft.Extensions.Configuration is official core way of configuring things.
We should add missing xref map files to docfx.json or write own map, if it doesn't exist for required types
How to choose a dialect of Oracle 11g?
After migration from 2.9.8 to 3.1.3 'Take ()' expression does not work for Oracle 11g with provider name "Oracle".
When I changed the provider name to "Oracle.Managed" the version was selected correctly.
Hi Igor,
I am preparing to use linq2db in a project. The Wiki gives an example of how to annotate a POCO class to build the Entity-DB mapping necessary to generate usable SQL for LINQ expression tree. However, I would like to load these attributes from an XML file instead - to avoid mixing DB and Entity specification. This will leave the POCO code clean. But linq2db will still have what it needs to do the SQL generation.
LinqToDB.Metadata.XmlAttributeReader looks like it will fit the bill, and there is sample XML in the Tests.Metada.XmlReaderTests.cs file. However, I'm not confident that I could write up XML that would work first-time with linq2db. I am also not certain how to apply the loaded mapping so that linq2db uses it (instead of trying to use reflection to analyse the POCO types).
Would you have a minute to post: a) a sample XML file that shows the key attributes that might be applied to a POCO class and its members; b) how to initialize linq2db so that this model is used, and not the one generated by reflection - which won't work if I don't annotate the POCO class with the various attributes.
I did notice that you also have a tool to generate the annotated POCO classes from a model (DB or otherwise). However, again, my hope is to keep the entity-DB mapping and entity attributes in an XML file, to keep the POCO sparse. Thank you!
Marc
My organisation is looking to integrate linq2db into our data access stack. Do any of the main contributors have capacity for some professional services work? What would be the best way to get in touch?
If I use your WCF Service, how is it like with transactions. Is the transaction commited if the using of the service context ends? What if the connection is closed before the using block ends (error case) , is the query executed?
First we need to fix existing warnings (#6)
Add automatic build and deployment of documentation using Azure DevOps to https://github.com/linq2db/linq2db.github.io on master branch commit
Candidates for documenting:
Hi!
It would be great to add documentation about:
We need to decide what to do with existing https://github.com/linq2db/examples repository
hi,please vs entityframe work core
Ok, let's speak about our Achilles' heel - documentation.
To be honest everything is awful, only documentation is start page & a little bit of wiki. We should work on it!
My suggestion is to build documentation using DocFX, things to be done:
Volunteer needed.
If you are going to document any section please write comment below an we'll mark that it is in process:
LinqToDB.Data.DataConnection : .ctor region
LinqToDB.Data.DataConnection : public properties region
LinqToDB.Data.DataConnection : configuration region
LinqToDB.Data.DataConnection : connection region
LinqToDB.Data.DataConnection : command region
LinqToDB.Data.DataConnection : transaction region
LinqToDB.Data.DataConnection : MappingSchema region
LinqToDB.Data.DataConnection : GetTable methods
LinqToDB.Data.DataConnectionExtensions : SetCommand region
LinqToDB.Data.DataConnectionExtensions : Query* regions
LinqToDB.Data.DataConnectionExtensions : Execute* regions
LinqToDB.Data.DataConnectionExtensions : BulkCopy region
LinqToDB.Data.DataConnectionExtensions : Merge region (@MaceWindu)
LinqToDB.IDataContext
LinqToDB.DataExtensions: Table Helpers region
LinqToDB.DataExtensions: Insert region
LinqToDB.DataExtensions: InsertOrReplace region
LinqToDB.DataExtensions: InsertWithIdentity region
LinqToDB.DataExtensions: Update region
LinqToDB.DataExtensions: Delete region
LinqToDB.DataExtensions: DDL Operations region
LinqToDB.LinqExtensions: Table Helpers region
LinqToDB.LinqExtensions: LoadWith region
LinqToDB.LinqExtensions: Scalar Select region
LinqToDB.LinqExtensions: Delete region
LinqToDB.LinqExtensions: Update region
LinqToDB.LinqExtensions: Insert region
LinqToDB.LinqExtensions: InsertOrUpdate region
LinqToDB.LinqExtensions: DDL Operations region
LinqToDB.LinqExtensions: Take/Skip/ElementAt region
LinqToDB.LinqExtensions: Having region
LinqToDB.LinqExtensions: IOrderedQueryable region
LinqToDB.Common.Configuration
BulkCopy: LinqToDB.Data.BulkCopyType, LinqToDB.Data.BulkCopyOptions
LinqToDB.ExpressionMethodAttribute
LinqToDB.Sql.TableFunctionAttribute
LinqToDB.Sql.TableExpressionAttribute
LinqToDB.Sql.PropertyAttribute
LinqToDB.Sql.GroupBy
LinqToDB.Sql.FunctionAttribute
LinqToDB.Sql.ExpressionAttribute
LinqToDB.Sql.EnumAttribute
LinqToDB.Sql math functions region
LinqToDB.Sql string, text, guid and binary functions regions
LinqToDB.Sql datetime functions region
LinqToDB.Sql convert functions region
LinqToDB.Sql common functions region
LinqToDB.ServiceModel.SoapDataContext
LinqToDB.ServiceModel.ServiceModelDataContext
LinqToDB.Mapping.TableAttribute
LinqToDB.Mapping.StoredProcedure (sic!)
LinqToDB.Mapping.SequenceNameAttribute
LinqToDB.Mapping.ScalarTypeAttribute
LinqToDB.Mapping.Relationship
LinqToDB.Mapping.PrimaryKeyAttribute
LinqToDB.Mapping.NullableAttribute
LinqToDB.Mapping.NotNullAttribute
LinqToDB.Mapping.NotColumnAttribute
LinqToDB.Mapping.MapValueAttribute
LinqToDB.Mapping.MapValue
LinqToDB.Mapping.AssociationAttribute
LinqToDB.Mapping.ColumnAliasAttribute
LinqToDB.Mapping.ColumnAttribute
LinqToDB.Mapping.DataTypeAttribute
LinqToDB.Mapping.IdentityAttribute
LinqToDB.Mapping.InheritanceMappingAttribute
LinqToDB.Mapping.MappingSchema: constructors
LinqToDB.Mapping.MappingSchema: ValueToSqlConverter region
LinqToDB.Mapping.MappingSchema: Default Values region
LinqToDB.Mapping.MappingSchema: CanBeNull region
LinqToDB.Mapping.MappingSchema: Convert region
LinqToDB.Mapping.MappingSchema: DefaultMappingSchema region
LinqToDB.Mapping.MappingSchema: Scalar Types region
LinqToDB.Mapping.EntityDescriptor
LinqToDB.Mapping.ColumnDescriptor
LinqToDB.Mapping.AssociationDescriptor
LinqToDB.Mapping.InheritanceMapping
LinqToDB.Linq.Expressions: MapMember region
LinqToDB.Linq.Expressions: Sql specific region
LinqToDB.Linq.Expressions: Provider specific functions region
I am trying to get hang of linq2db, but can't find any real examples.
for example I am trying to run a stored procedure (see below), however it does not seem to fire.
int x = DataConnectionExtensions.ExecuteProc(connection, "spName", DataParameter.Varchar("whateverParamName", "whateverParamValue"))
I am passing the parameters the right way?
Like sql, should it be EXEC spName @whateverParamName or is it ok
When I specify dataparameter do I need to specify with @? like @whateverParamName (DataParameter.Varchar("@whateverParamName", "whateverParamValue"))
Any guidance would be much appreciated.
Documentation md files from other repositories should be moved to articles. E.g. t4 readme.md
[19-05-25 01:47:31.608]Warning:[BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.Apply Templates](api/LinqToDB.Data.BulkCopyOptions.yml)The value of property 'name' in uid 'MaxBatchSize' is not string
[19-05-25 01:47:31.611]Warning:[BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.Apply Templates](api/LinqToDB.EntityFrameworkCore.LinqToDBForEFToolsImplDefault.yml)The value of property 'name' in uid 'LinqToDB.EntityFrameworkCore.EFCoreMetadataReader' is not string
[19-05-25 01:47:31.616]Warning:[BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.Apply Templates](api/LinqToDB.Common.Configuration.Linq.yml)The value of property 'name' in uid 'LinqToDB.Linq.Query`1.ClearCache' is not string
[19-05-25 01:47:31.617]Warning:[BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.Apply Templates](api/LinqToDB.Mapping.MappingSchema.yml)The value of property 'name' in uid 'System.Data.Linq.Mapping' is not string
[19-05-25 01:47:31.617]Warning:[BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.Apply Templates](api/LinqToDB.Mapping.MappingSchema.yml)The value of property 'name' in uid 'Microsoft.SqlServer.Server' is not string
linq2db wiki articles should reviewed and moved to articles in this repository (and removed from linq2db wiki) to improve out documentation site and get rid of documentation duplication
We need to create new documentation structure (without actual documentation yet) and then fill new issue for each missing article
Content of this file should be moved to root readme.md
I just set up a .net core 2.1.x MVC project in VS2017 and tried with the documentation to get started and got a syntax error and some issues:
yield does not exist in context / Invalid token "break;
public IEnumerable<IDataProviderSettings> DataProviders => yield break;
This works:
public IEnumerable<IDataProviderSettings> DataProviders => Enumerable.Empty<IDataProviderSettings>();
Also the docs are really thin. Where to I put also DataConnection.DefaultSettings = new MySettings();
?
I assume in MVC apps in Startup.cs and I also don't know if it's supposed to be implemented like that anymore (?). Could you give in code examples also the entire file, so one can see exactly what you imported and so forth (like MS docs).
Thanks.
linq2db version: 1.10.0
Database Server: MySql 5.7
Operating system: E.g. Windows 10
Framework version: .NET Core 2.1.x
Visual Studio: 2017
Need to create/actualize this branch for all imported submodules first
Remove articles and build/deploy scripts from linq2db repository
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.