Table and Column names causing problems
        Posted  
        
            by craig
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by craig
        
        
        
        Published on 2009-09-11T09:23:27Z
        Indexed on 
            2010/04/08
            3:33 UTC
        
        
        Read the original article
        Hit count: 454
        
I have an issue when the T4 linq templates generate the classes for my MySql db using subsonic 3.
It looks like one of our table names "operator" is causing problems in the Context.cs generated class. In the following line of code in Context.cs Visual Studio sees <operator> as a c# operator and generates a compilation error of "Type expected" 
public Query<operator> operators { get; set; }
Is there anyway I can work around this without having to rename my database table and column names? For example hard coding something in Settings.ttinclude to use or map different names to specific db tables and columns?
© Stack Overflow or respective owner