|
Παρουσίαση με Ετικέτες
Όλες οι Ετικέτε... » linq (RSS)
Εμφάνιση σελίδας 1 από 2 (33 συνολικές δημοσιεύσεις)
-
At Trafilm project’s Metadata (http://github.com/zoomicon/Trafilm.Metadata) I have a linked data structure where a Film contains multiple Conversations which contain multiple L3SToccurrences, which in turn contain multiple L3TToccurrences. I had the need to calculate a list of all unique L2language values of L3TToccurrence grand-grand-children for ...
-
Θα θέλαμε να σας καλέσουμε στην τέταρτη F# συνάντηση της κοινότητας μας Athens F# User Group που θα γίνει στις 11 Δεκεμβρίου 2014 και ώρα 18:45 με 21.00 στο The Cube Athens (κλείνουμε ένα χρόνο!). Η παρουσίαση θα αφορά Streams!
Υπάρχουν
πολλές ερμηνείες για το τι είναι Stream. Η βιβλιοθήκη που θα
παρουσιαστεί, εξωτερικά μοιάζει ακριβώς ...
-
My contribution to http://stackoverflow.com/questions/1101841/linq-how-to-perform-max-on-a-property-of-all-objects-in-a-collection-and-ret Based on another answer there, here is what I’ve just added to my enhanced version of SilverFlow library’s FloatingWindowHost (copying from FloatingWindowHost.cs at ...
-
Εκτός και αν πρόκειται για sample, prototype ή throw-away project τότε η αρχιτεκτονική μιας ASP.NET εφαρμογής είναι αυτή που φαίνεται στο παρακάτω σχήμα.
Τα επίπεδα (layers) μπορούν να διαμορφωθούν ανάλογα με το μέγεθος της εφαρμογής. Για παράδειγμα, πιθανόν να υπάρχει χωριστό presentation layer (ανάμεσα στα Services και το UI) αρκεί η ...
-
Με το LINQPad μπορείτε να συνδεθείτε στη βάση δεδομένων, να εκτελέσετε LINQ queries γράφοντας τα σε lambda ή query syntax, να δείτε τα αντίστοιχα SQL statements και φυσικά τα αποτελέσματά τους.
Για παράδειγμα, το παρακάτω query φέρνει το πελατολόγιό μας με σειρά συχνότητας επισκέψεων (ο πιο συχνός πελάτης εμφανίζεται πρώτος) και κατόπιν ...
-
Μιας και η χρονιά ξεκίνησε με παρουσίαση βιβλίου, ενας πολύ καλός οδηγός τσέπης είναι το LINQ Pocket Reference (εκδόσεις O'Reilly).Ιδιαίτερο ενδιαφέρον έχει το πρώτο μέρος του οδηγού που εξηγεί βασικές έννοιες όπως το deferred execution, iterator chaining και lamda expressions type inference. Πολύ ακριβής και η αναφορά στις διαφορές ανάμεσα στα ...
-
So, it has been a while since I joined the club of those who faced the intimidating Loading toolbox content from package Microsoft.VisualStudio.IDE.Toolbox.ControlInstaller.ToolboxInstallerPackage ‘{2C98B35-07DA-45F1-96A3-BE55D91C8D7A}’ problem, every time I opened a new instance of Visual Studio and used the XAML designer. After some ...
-
In this post I will be writing LINQ queries against an array of strings, an array of integers.Moreover I will be using LINQ to query an SQL Server database. I can use LINQ against arrays since the array of strings/integers implement the IENumerable interface...(read more)
-
Can you guess the output of the following code?
var values = new List<int>() { 100, 110, 120 };
var funcs = new List<Func<int>>();
foreach (var v in values)
funcs.Add(() => v);
foreach (var f in funcs)
...
-
Καλησπέρα.Ξέρει κάποιος αν ο τελεστής equals κατα το join της linq to SQL με τελεστέους strings αν καλείτην Equals μέθοδο των strings η απλά ελέγχει αν έχουν ίσες διευθύνσεις μνήμης?Ευχαριστώ//Αν υπάρχει καταλληλότερο μέρος για το νήμα μετακινήστε το, απλά δεν βρήκα κάτι σχετικό
-
In this post I would like to talk about Linq to Objects in an ASP.Net application. In all my classes people seem to have the following answer to this question, “What kind of data can we query with LINQ?“ Most people say “Well, we can query an SQL server database” . I am not very [...]
-
I’m starting a new line of blog posts in which I’m going to give out a few tips and tricks I’ve picked up during the past years. I’m going to start with one of the most common mistakes I often face when reading code.
To demonstrate that, I’m going to use LinqToSQL as my data access method (although the problem can be found in any kind of Data ...
-
In this post I will try to create an excel file and populate the rows and columns with XML data that I read from a relational database table. I will use Visual Studio 2008,vb and in particular XML Literals and LINQ to SQL classes.
-
Βρήκα ένα ενδιαφέρον post, στο οποίο ο Terry Aney προσθέτει batch support για deletes και updates. Δεν το έχω δοκιμάσει, αλλά φαίνεται πολύ ενδιαφέρον:Batch Updates and Deletes with LINQ to SQL
-
In this post, I will go back to the issue of LINQ. I am going to show with an example how to use LINQ and stored procedures to insert,update and delete records from a particular table.
-
Hello, έχω ένα objectάκι που μου έχει φτιάξει το linq, πχ Customer. Θέλω να του βάλω ένα method Delete, έτσι ώστε να καλώ το MyCustomer.Delete και να μαρκάρεται για delete μέσα στο context.Αυτό για να γίνει εξωτερικά, θα έπρεπε να δώσω MyContext.DeleteOnSubmit(MyCustomer). Και ερωτώ: Μέσα απο το Customer, πως μπορώ να πάρω το context που το ...
-
How to monitor and debug LINQ to SQL queries
-
Hello, έχει χρησιμοποιήσει κάποιος linq σε web projects και να έχει μπλέξει και caching μαζί; Κάποια στρατηγική που να έχει δουλέψει; Γενικά, πως χρησιμοποιείτε linq σε web περιβάλλον;(Ξέρω ότι τα objecτάκια του linq (to sql) δεν είναι cachable, ξέρω ότι το context έχει αντίληψη unit of work, ξέρω ότι γίνονται serialize μόνο σε xml).
-
Nullable data types allow you to create data types like integers and initialize them to nothing.
-
Hello πάλι, περιπέτειες με linq:Είχα να κάνω ένα batch insert σε ένα πινακάκι, περίπου 100K εγγραφές. Το insert το έκανα με SqlBulkCopy. Μέσα στο loop των εγγραφών όμως έκανα ένα lookup σε ένα άλλο πινακάκι (των 200 εγγραφών) που ήταν φορτωμένο με linq (όλα τα lookups μέσα στο ίδιο context βεβαίως). Το performance ήταν αισχρό, περίπου 10sec για ...
-
Hello to everybody, ψάνω το εξής αλλά δεν βρίσκω λύση:Έχω έναν πίνακα με InsteadOf Insert trigger, στον οποίο θέλω να κάνω insert με LINQ. Ο πίνακας έχει primary key με auto value, για το οποίο απ' όσο καταλαβαίνω το LINQ αποτυγχάνει να λάβει νέα τιμή μετά το insert (λόγω του ότι ο trigger κάνει το actual insert), οπότε σκάει στο ξαναφόρτωμα ...
-
In this post I will look into ordering and grouping keywords and methods in LINQ. I will try to explain C# keywords such as orderby, descending, group by . On top of that I will cover extension methods such as OrderBy(), ThenBy(), OrderByDescending(), ThenByDescending() and GroupBy()
-
extension methods is a brand new feature that comes with c# 3.0 and vb 9.0 versions and help us to extend existing types with static methods
-
Anonymous types in c# 3.0 and examples
-
In this post, which is another post for LINQ, I will try to explain how we can use LINQ set operators on arrays.Basically set operators are extension methods that allows to filter,merge arrays.We are going to examine these methods in detail. We will examine them by creating a project in visual studio.
Basically we are going to use two [...]
1
|
|
|