コード例 #1
0
        public static int GetFieldIndex(string field)
        {
            int fieldIndex = 0;

            using (TechCareerFair.DAL.FieldDAL.FieldDatabaseDataService ds = new FieldDAL.FieldDatabaseDataService())
            {
                List <field> fields = ds.Read();

                foreach (field f in fields)
                {
                    if (f.Name.ToLower().Trim() == field.ToLower().Trim())
                    {
                        fieldIndex = f.FieldID;
                        break;
                    }
                }
            }

            return(fieldIndex);
        }
コード例 #2
0
 public void Dispose()
 {
     _fields = null;
     _ds     = null;
 }