question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension `AsValueInsertable` for IQueryable<T> ?

See original GitHub issue

Based on https://stackoverflow.com/questions/69882757/iupdatablet-and-ivalueinsertablet-from-optional-values

IQueryable has an extension AsUpdatable which allows building dynamic blocks with Set(), but there is no extension which would cast ITable<T> to IValueInsertable<T>. Would it be possible to add it?

P.S. is it ok that I have created both the stackoverflow question and this issue?

Environment details

linq2db version: 3.5.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
MaceWinducommented, Mar 4, 2022

merged

1reaction
sdanylivcommented, Nov 9, 2021

Use linq2db.Playground.slnf and link only needed tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If I cast an IQueryable as an IEnumerable then call a Linq ...
The currently accepted answer deals with virtual methods, not extension methods. If you cast an IQueryable to an IEnumerable and then call ...
Read more >
Extension methods on IQueryable (Become an expert)
IQueryable is used to operate mainly on databases. IQueryable are an extension from IEnumerable , hence, we can call all extensions and methods...
Read more >
Extending IQueryable for very long and specific query
Hi, I have a demo asp.net noce mvc appluication where I have a database of customers that I access with entity framework.
Read more >
IQueryable Interface (System.Linq)
Extension Methods​​ Converts an IEnumerable to an IQueryable. Converts the elements of an IQueryable to the specified type. Filters the elements of an...
Read more >
IEnumerable vs IQueryable: Customizing LINQ Queries in C#
They both allow you to perform queries on collections of data, but they have some important differences. In this article, you will learn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found