Skip to content

Instantly share code, notes, and snippets.

@bdallen
Created November 18, 2011 01:03
Show Gist options
  • Save bdallen/1375179 to your computer and use it in GitHub Desktop.
Save bdallen/1375179 to your computer and use it in GitHub Desktop.
Blah
private string GetManufacturer(string MacAddress)
{
using (ISession session = Global._DatabaseConn.OpenSession())
{
using (ITransaction transaction = session.BeginTransaction())
{
string strManuFacturer = "N/A";
var OID = session.Query<normutils.data.Entities.MACIdentifier>();
var Type = (from t in OID
where t.ID == MacAddress.Substring(0,8)
select t.Name);
try
{
strManuFacturer = Type.ToString();
}
catch (Exception ex)
{
}
return strManuFacturer;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment