Information générale
Catégorie:
The Mere Mortals .NET Framework
Frank,
The warning is just that, a warning. Your code should work but the warning is telling you that you never are assigning a value to a defined variable which will be handled by SQL Server when you add a new row.
Update: Are you sure it is Identity column in database?
HTH
>Hi,
>
>using MM.NET 3.6 and SQL Server 2008.
>
>If I have an AutoInc field (Identity in SQL Server) and use the Business Layer Generator, I then get a warning when I build my project:
>
>Field 'SamaanSystems.IAS.Business.AgentEntity._agentNumber' is never assigned to, and will always have its default value 0
>
>Now, I have not set this field as a Primary Key as it is actually being used as a Candidate Key. Also the value never gets generated as far as I can tell.
>
>What do I need to do to get this to work?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement