473,785 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Presisting attributes destroyed by SQLMetal

I use sqlmetal to generate cs code.

sql metal generates property attributes in form

[Column()]
public string Floorlimit { ....

I need to specify that this property is discriminator. Since C# does not
support partial properties, I added manually to generated code

[Column(IsDiscri minator=true)]

After I re-run sqlmetal, all IsDiscriminator values are lost.

How to set IsDiscriminator property so that this value persist after cs
code is re-generated by sqlmetal ?

Andrus.

Jun 27 '08 #1
0 905

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

Similar topics

5
2196
by: Steve Lutz | last post by:
Hello, I have a page that creates a class, and then on certain conditions, redirects user to another page. The class has a Class_Terminate() function that saves itself to a database. The class comes from an includes ASP file, it isn't a COM object. Here's my code outline (not actual code for brevity - in otherwords, there may be syntax errors, but that's not the cause of the problem)
2
2694
by: Charles Herman | last post by:
I have the following loop: for (int i = 0; i < n; ++i) { CClass newObject( i ); // // lines of code // }
9
1436
by: Ioannis Vranos | last post by:
Today I came across this code. As far as I know this is undefined behaviour, but I wanted to see what others think: class SomeClass { static bool isDisconnected; public: ~SomeClass()
0
1224
by: hammad.awan_nospam | last post by:
Hello, I have used SqlMetal to generate the Dlinq classes for my database schema. I have created instances of those classes and then tried binding them to a PropertyGrid object through it's SelectedObject property. Whenever a Dlinq object is bound, and a particular EntityRef object within that class cannot be obtained from a query, it throws a EmptySequenceException. This is really not an issue from a "get" perspective, i.e. when an
0
1031
by: Robson Felix | last post by:
Folks, I've been trying to put some legacy databases I have here through SqlMetal. Most of it goes well, but in some stored procedures, I get errors for temp tables that don't exist and so on. I don't think I can simply go and change every single object of mine. My question is: is there a way to have SqlMetal generate a dataset for each stored procedure call rather than a customized result for each procedure? I understand that...
3
1961
by: Andy | last post by:
Hi, I use procs for my data access, instead of allowing direct inserts and updates to tables. How can I get SqlMetal to generate code that will use procs? I know the designer you can Configure Behavior to do this.. is there no equivolent in Sql Metal? Thanks
2
2095
by: =?Utf-8?B?Sm9lcm4gU2Nob3UtUm9kZQ==?= | last post by:
I am trying to execute the sqlmetal util with the following command line arguments /provider:SQL2005 /database:bookshelf_dev /code:SqlMetal.cs This gives me the following error: Error : Could not load type 'System.Data.Linq.SqlClient.Sql2008Provider' from assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
0
937
by: Joern Schou-Rode | last post by:
In the database (SQL2005) that I am working on, the tables are divided into a few schemas, which are used to restrict permissions for certain users. When autogenerating entity classes thorugh the SqlMetal command line tool, the schema names become part of the class names (eg. a class might be named Schema_Table). Searching the internet for this subject does not turn up much - just a single forum post with an answer like "this is the way...
2
10194
by: Big Daddy | last post by:
For example, if I have a DB table called DownloadPoints with a column named DownloadPointNo, then SqlMetal will create a file with a class called DownloadPoints with an accessor named DownloadPointNo. I would like the object to be able to pass me the string "DownloadPointNo". For example, the code could be something like: DownloadPoints dp = new DownloadPoints(); string colName = dp.DownloadPointNo.ColumnName; Or I could write a...
0
9643
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
9480
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
10319
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
9947
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
8971
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...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.