FileHelpers.Dynamic.ClassBuilder.CreateRecordClass Error
问题 I'm trying to reading a file with layout created at runtime. But when running FixedLengthClassBuilder.CreateRecordClass (), an exception occurs: Error Compiling Expression: Line 31: The type or namespace name 'SGCompras' could not be found (are you missing a using directive or an assembly reference?). My code: public void ReadFile(string filePath){ ... var itemsLayout = Context.FixedLayouts.Where(p => p.LayoutName == "Margem").ToList(); var builder = GetFixedClass(itemsLayout, "Margem"); var