This question is locked. New answers and comments are not allowed.
Hi,
JusteCode manages compiler option in an asp.net website.
When I use compiler otpions JusteCode finds a lot of errors.
see my code sample
Stéphane.
JusteCode manages compiler option in an asp.net website.
When I use compiler otpions JusteCode finds a lot of errors.
see my code sample
#if MYSQLENTITYusing VISOnDbEntityMySql;#endif#if MSSQLENTITYusing VISOnDbEntityMSSQL;#endif#if MSSQLENTITYusing VISOnDbEntity;#endif#if DBMSSQLusing VISOnDBMSSQL;#endifStéphane.
7 Answers, 1 is accepted
0
Hi Stephane,
Thanks for the feedback.
I am sorry but the code sample is not sufficient to reproduce the problem. Could you send us a full file and tell us what values are configured for the preprocessor symbols?
Best wishes,
Hans Kratz
the Telerik team
Thanks for the feedback.
I am sorry but the code sample is not sufficient to reproduce the problem. Could you send us a full file and tell us what values are configured for the preprocessor symbols?
Best wishes,
Hans Kratz
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Stephane
Top achievements
Rank 1
answered on 05 Aug 2010, 08:42 AM
Hi,
In my project I use different ADO.net Entity sources according to the configuration of the production server.
In the wen.config file I define compiler option like this :
I define the connection string also.
I create a class which manages the acces to the entities. a piece of class:
I see in the forum that JustCode has some problem with partial class, this bug is closed?
Bye.
Stéphane.
In my project I use different ADO.net Entity sources according to the configuration of the production server.
In the wen.config file I define compiler option like this :
<system.codedom> <compilers> <!-- Option DEBUG --> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/d:DBMSSQL,DEBUG"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError" value="false"/> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/d:DBMSSQL,DEBUG"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="OptionInfer" value="true"/> <providerOption name="WarnAsError" value="false"/> </compiler> <!-- Option RELEASE --> <!-- <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/d:DBMSSQL"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError" value="false"/> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/d:DBMSSQL"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="OptionInfer" value="true"/> <providerOption name="WarnAsError" value="false"/> </compiler>--> </compilers> </system.codedom>I define the connection string also.
I create a class which manages the acces to the entities. a piece of class:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.ComponentModel;using System.Linq.Dynamic;using System.Text;using System.Reflection;using System.Security.Permissions;using System.Security;using System.Configuration;using System.Data.SqlClient;using System.IO;#if MYSQLENTITYusing VISOnDbEntityMySql;#endif#if MSSQLENTITYusing VISOnDbEntityMSSQL;#endif#if MSSQLENTITYusing VISOnDbEntity;#endif#if DBMSSQLusing VISOnDBMSSQL;using System.Diagnostics;#endif[DataObject(true)]/// <summary>/// Description résumée de DataItemFacade/// </summary>public class DataItemFacade{ private Categorie ToutCategorie; private VISOnDBEntities entities = null; public DataItemFacade() { ToutCategorie = new Categorie() { code = "__TOUTCATEGORIE__", Libelle = "Toute les categories" }; entities = new VISOnDBEntities(); } [DataObjectMethod(DataObjectMethodType.Select)] public List<Batiment> GetAllBatiment() { return entities.Batiment.Include("ThemeVisite").ToList(); } [DataObjectMethod(DataObjectMethodType.Select)] public List<ThemeVisite> GetThemeVisiteForBatiment(int idBatiment) { return entities.ThemeVisite.Include("Batiment").Where(tv => tv.Batiment.idBatiment == idBatiment).ToList(); } [DataObjectMethod(DataObjectMethodType.Select)] public List<PointObservation> GetPOForBatiment(int idBatiment) { return entities.PointObservation.Include("Salle.Etage.Batiment").Where(po => po.Salle.Etage.Batiment.idBatiment == idBatiment).ToList(); }I see in the forum that JustCode has some problem with partial class, this bug is closed?
Bye.
Stéphane.
0
Accepted
Hi Stephane,
Hans Kratz
the Telerik team
thanks for filling in the blanks. You are right, JustCode does not pick up preprocessor defines from the web.config file. I have added this report to our product backlog and we plan to implement that in a future version. You will be automatically notified once it is implemented.
Hans Kratz
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Stephane
Top achievements
Rank 1
answered on 12 Aug 2010, 08:45 AM
Hi,
I win some points?
;-)
I win some points?
;-)
0
Accepted
Hello Stephane,
Hans Kratz
the Telerik team
sorry, I forgot. I have awarded you 800 Telerik points for your report.
Hans Kratz
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Stephane
Top achievements
Rank 1
answered on 12 Aug 2010, 01:43 PM
Thanks a lot!
0
Hi Stephane,
Hans Kratz
the Telerik team
OK, I am closing this ticket.
Hans Kratz
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items