4
I Use This!
Activity Not Available

News

Analyzed about 1 year ago. based on code collected about 1 year ago.
Posted over 8 years ago by rivantsov
Hi,I define FreeText literal for this script "SELECT * FROM dbo.Person WHERE Country.City.Id = ?". I tried to get "Country.City.Id" word. works ok. but Every token marks mirror. I mean WHERE looks mirror. var mirror = new ... [More] FreeTextLiteral("mirror", FreeTextOptions.AllowEof, " "); mirror.SetFlag(TermFlags.IsNonGrammar); Id.Rule = MakePlusRule(Id, dot, mirror) is there any way to fix this. Comments: remove mirror.SetFlag(....) this causes this terminal to catch everything but I am not sure FreeTextLiteral is appropriate here. [Less]
Posted over 8 years ago by oturkan
Hi,I define FreeText literal for this script "SELECT * FROM dbo.Person WHERE Country.City.Id = ?". I tried to get "Country.City.Id" word. works ok. but Every token marks mirror. I mean WHERE looks mirror. var mirror = new ... [More] FreeTextLiteral("mirror", FreeTextOptions.AllowEof, " "); mirror.SetFlag(TermFlags.IsNonGrammar); Id.Rule = MakePlusRule(Id, dot, mirror) is there any way to fix this. [Less]
Posted over 8 years ago by oturkan
Hi,I define FreeText literal for this script "SELECT * FROM dbo.Person WHERE Country.City.Id = ?". I tried to get "Country.City.Id" word. works ok. but Every token marks mirror. I mean WHERE looks mirror. var mirror = new ... [More] FreeTextLiteral("mirror", FreeTextOptions.AllowEof, " "); mirror.SetFlag(TermFlags.IsNonGrammar); Id.Rule = MakePlusRule(Id, dot, mirror) is there any way to fix this. [Less]
Posted over 8 years ago by bbsimonbb
Looks like I needed to be over here. Found this nice summary of templating approaches. Very happy to have discovered Irony though. If only I were smarter.
Posted over 8 years ago by bbsimonbb
Looks like I needed to be over here. Found this nice summary of templating approaches. Very happy to have discovered Irony though. If only I were smarter.
Posted over 8 years ago by bbsimonbb
I've got a nifty VS extension that generates C# wrapper classes for sql queries. I currently do this with string methods. So somewhere in my thing, you're going to see me generating C# properties for each column in a resultset : foreach( var myField ... [More] in MyResultsetSchema ) code.AppendLine( "public " + myField.CSType + " " + myField.CSName + "{get;set;}"; I'm dimly aware that this is primitive! I want to give my users maximum control over the code that gets generated. Some will want auto-implemented properties, some might want immutable objects, some might want class and interface definitions and so on. Is this a good job for Irony? Do I need to create my own DSL, or is their a DSL already defined for generating C#? We're talking about a text transformation, where I have a design time template and a run time input, essentially { [QueryParameters], [ResultsetColumns] } The Irony examples I've seen on the web just have one input. I'm so confused about this I'm even wondering if I should use XSLT! Someone please save me! [Less]
Posted over 8 years ago by bbsimonbb
I've got a nifty VS extension that generates C# wrapper classes for sql queries. I currently do this with string methods. So somewhere in my thing, you're going to see me generating C# properties for each column in a resultset : foreach( var myField ... [More] in MyResultsetSchema ) code.AppendLine( "public " + myField.CSType + " " + myField.CSName + "{get;set;}"; I'm dimly aware that this is primitive! I want to give my users maximum control over the code that gets generated. Some will want auto-implemented properties, some might want immutable objects, some might want class and interface definitions and so on. Is this a good job for Irony? Do I need to create my own DSL, or is their a DSL already defined for generating C#? We're talking about a text transformation, where I have a design time template and a run time input, essentially { [QueryParameters], [ResultsetColumns] } The Irony examples I've seen on the web just have one input. I'm so confused about this I'm even wondering if I should use XSLT! Someone please save me! [Less]
Posted over 8 years ago by woopsie
Many thx. Very helpful . (Sorry it took so long to reply)
Posted over 8 years ago by woopsie
Many thx. Very helpful . (Sorry it took so long to reply)
Posted over 8 years ago by oturkan
Thank you for replay. A.B is Not a table.columnname. a.b is custom Text. İ think textliteral works for me