UIomatic is an awesome tool.
We are using UIOmatic with our Recipe database.
I have a question:
I have two Pocos, one is Recipes and the other is Ingredients
One thing in common they share a Foreign Key called Recipe Id
1) How do I share the ingredient information in Recipe's UI when don't share the same table. I have tried the (List) as a View and the Config did not work: Here is the code
[UIOMaticField (Name ="Ingredients", View = UIOMatic.Constants.FieldEditors.List,
Config = "{'typeALias':'ingredients', 'foreignKeyColumn':'RecipeId', 'canEdit':true}", Tab = "General", TabOrder = 3)]
public IEnumerable<Ingredients> IngredientList { get; set; }
the list is empty
- I am doing wrong
Thanks
Matthew Berner
UIOMatic Question
UIomatic is an awesome tool. We are using UIOmatic with our Recipe database. I have a question: I have two Pocos, one is Recipes and the other is Ingredients One thing in common they share a Foreign Key called Recipe Id
1) How do I share the ingredient information in Recipe's UI when don't share the same table. I have tried the (List) as a View and the Config did not work: Here is the code
[UIOMaticField (Name ="Ingredients", View = UIOMatic.Constants.FieldEditors.List, Config = "{'typeALias':'ingredients', 'foreignKeyColumn':'RecipeId', 'canEdit':true}", Tab = "General", TabOrder = 3)] public IEnumerable<Ingredients> IngredientList { get; set; }
the list is empty - I am doing wrong Thanks Matthew BernerHi,
The typeAlias (check your typo btw) must be the name of your UI-O-Matic named class.
Make sure the class that has the Recipe Id is decorated as such:
}
Please not the lower case recipes. Use that in your Ingredients config:
Please note: I had some weird bug when the ID-column was not named ID. So if you run into any other errors, rename RecipeId to Id accordingly.
Sibren That did work Thanks Matthew Berner
is working on a reply...