public ByteStorage(ItemBase item, String columnName, FieldCategory fieldType) { Name = columnName; this.item = item; this.item.Fields.Add(this); FieldType = fieldType; }
public DateTimeStorage(ItemBase item, String columnName, FieldCategory fieldType, Boolean isDateFormat) { Name = columnName; this.item = item; this.item.Fields.Add(this); FieldType = fieldType; this.isDateFormat = isDateFormat; }
public static string ConvertFieldCategoryToString(FieldCategory _fieldCategory) { switch (_fieldCategory) { case FieldCategory.Grass: return("Grass"); case FieldCategory.Desert: return("Desert"); case FieldCategory.Jungle: return("Jungle"); case FieldCategory.Mine: return("Mine"); default: return(""); } }
public DateTimeStorage(ItemBase item, String columnName, FieldCategory fieldType) : this(item, columnName, fieldType, false) { }
public void AddFieldCategory(FieldCategory fieldCategory) { _context.FieldCategories.Add(fieldCategory); _context.SaveChanges(); }