473,657 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LINQ

Good noon! Maybe anyone of you knows how generate LINQ Classes
programmaticall y?

Thanks in advance!

Jan 14 '08 #1
5 2599
On Jan 14, 3:01 pm, Nikolay Podkolzin
<NikolayPodkol. ..@discussions. microsoft.comwr ote:
Good noon! Maybe anyone of you knows how generate LINQ Classes
programmaticall y?
You'll need to give a lot more detail than that. What do you mean by
"LINQ classes"?

Jon
Jan 14 '08 #2
sure. For example I've a dialog (like in Visual Studio) Where I'm typing
server, psw, etc... and after that, I take the LINQ Classes (like in the
Visual Studio and it's designer)
"Jon Skeet [C# MVP]" wrote:
On Jan 14, 3:01 pm, Nikolay Podkolzin
<NikolayPodkol. ..@discussions. microsoft.comwr ote:
Good noon! Maybe anyone of you knows how generate LINQ Classes
programmaticall y?

You'll need to give a lot more detail than that. What do you mean by
"LINQ classes"?

Jon
Jan 14 '08 #3
On Jan 14, 3:48 pm, Nikolay Podkolzin
<NikolayPodkol. ..@discussions. microsoft.comwr ote:
sure. For example I've a dialog (like in Visual Studio) Where I'm typing
server, psw, etc... and after that, I take the LINQ Classes (like in the
Visual Studio and it's designer)
So are you talking specifically about LINQ to SQL classes? And are you
talking about trying to call the generator that Visual Studio uses, or
writing your own?

Perhaps it would help if you could give us some information about why
you're trying to do this in the first place.

Jon
Jan 14 '08 #4
yes, I'm talking about Linq to Sql clasess. And I wanna use the generator
that VS uses. What for I need this: Probably it would be useful for me (as
well as other developers who works with Relational Data)

Thanks In Advance

"Jon Skeet [C# MVP]" wrote:
On Jan 14, 3:48 pm, Nikolay Podkolzin
<NikolayPodkol. ..@discussions. microsoft.comwr ote:
sure. For example I've a dialog (like in Visual Studio) Where I'm typing
server, psw, etc... and after that, I take the LINQ Classes (like in the
Visual Studio and it's designer)

So are you talking specifically about LINQ to SQL classes? And are you
talking about trying to call the generator that Visual Studio uses, or
writing your own?

Perhaps it would help if you could give us some information about why
you're trying to do this in the first place.

Jon
Jan 14 '08 #5
On Jan 14, 4:07 pm, Nikolay Podkolzin
<NikolayPodkol. ..@discussions. microsoft.comwr ote:
yes, I'm talking about Linq to Sql clasess. And I wanna use the generator
that VS uses. What for I need this: Probably it would be useful for me (as
well as other developers who works with Relational Data)
So what would you need it to do programatically rather than via Visual
Studio? Would you expect to already have a .dbml file? I'm having
trouble understanding a concrete use for this rather than "it would
probably be useful".

Anyway, I believe the SqlMetal tool is what VS uses, so if you're
happy to launch that it should be okay.

Jon
Jan 14 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1884
by: Dave Johnson | last post by:
Greetings, i want to be able to use linq new technology with sql server. the senario i am not able to do so far is as follow: 1- i program with linq 2- be able to generate and manipulate xml files 3- all this xml files are stored in Sqlserver
4
2151
by: cj | last post by:
Can I use LINQ in VB .Net 2008 to get to a Visual FoxPro Table? I've seen demos of it with SQL Server but they've used it with a server browser and I don't think that'd work when I need to see VFP tables.
9
2499
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
Hi all: after reading different places/sites about linq... I ran into these questions: 1. What framework do we need to run linq ? (does it depend on what version of visual studio we have?) how about vs2008? is it different name space or framework for linq xml or linq sql? ( 2. do we need to have references to what linq's dlls. or namespaces? system core? 3. what name spaces are needed?
0
2357
by: =?Utf-8?B?SHlwZXJjb2Rlcg==?= | last post by:
I'm encountering some strange behavior after deploying a ASP.net 3.5 website to production, i'm unable to reproduce these in my dev environment. This error seems to occur very randomly but it's occuring enough to be a real cause for concern. The errors occur a couple times a week and the website is hit with constant traffic 24x7. Below are the two errors that are encountered. I had read something about MARS causing errors like this but...
4
2180
by: =?Utf-8?B?RXJpYyBGYWxza2Vu?= | last post by:
We’re storing our main entity in an insert only table which stores the history of past revisions, but we’re facing problems with storing this history as LINQ will only update the entity, and not reinsert it with a different revision number. Compounding the issue, we’ve also got an associated table storing properties for our entities which is not revisioned, but we still want changes to the children of our entity (additions, changes...
14
3671
by: thj | last post by:
Hi, I was wondering what you guys are using and why? LINQ to SQL or NHibernate? Thanks in advance, Tommy
9
2255
by: Cirene | last post by:
I'm about to begin a brand new, big, ASP.NET project (using 3.5 .net fw), VS 2008. I'm using MySQL as the backend (customer request.) I have absolutely no experience with LINQ and/or the Entity Framework. Though I am quite comfortable with ADO.NET and VB.NET. In your opinion, should I take a few days and learn it and utilize these technologies in this new project (I'm starting from scratch)? Are the benefits worth it in your opinion?...
3
12429
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
I'm attempting to use LINQ to insert a record into a child table and I'm receiving a "Specified cast is not valid" error that has something to do w/ the keys involved. The stack trace is: ====================== Message: Specified cast is not valid. Type: System.InvalidCastException Source: System.Data.Linq TargetSite: Boolean TryCreateKeyFromValues(System.Object, V ByRef)
4
2528
by: George | last post by:
I am a bit conservative type and usually give some time for technology to mature before starting to try it. Today my question is Linq. To start using it or not. So here is the voting questions. 1. It speeds up development. Yes or No? 2. It makes programs easier to code and read. Yes or No? 3. Perfomance is the same (or comparable) comparing Linq with MsSql and ADO.NET
0
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.