Search Results

Search found 2 results on 1 pages for 'cooter'.

Page 1/1 | 1 

  • AutoIncrement in SQLite with Subsonic 3

    - by Cooter
    This is probably a simple matter, but when I create a new object, the ID property starts off as 0 rather than null. As I understand it, SQLite takes/needs a value of null for the PK column to do the AutoIncrement. So the short question is how to get the ID in the object to start life as null? Thanks cooter

    Read the article

  • Possible to load an Enum based on a string name?

    - by Cooter
    OK, I don't think the title says it right... but here goes: I have a class with about 40 Enums in it. i.e: Class Hoohoo { public enum aaa : short { a = 0, b = 3 } public enum bbb : short { a = 0, b = 3 } public enum ccc : short { a = 0, b = 3 } } Now say I have a Dictionary of strings and values, and each string is the name of above mentioned enums: Dictionary<string,short>{"aaa":0,"bbb":3,"ccc":0} I need to change "aaa" into HooBoo.aaa to look up 0. Can't seem to find a way to do this since the enum is static. Otherwise I'll have to write a method for each enum to tie the string to it. I can do that but thats mucho code to write. Thanks, Cooter

    Read the article

1