Skip to content

Instantly share code, notes, and snippets.

@njmube
Forked from bdallen/gist:1375179
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save njmube/418d17f96e76604caa8c to your computer and use it in GitHub Desktop.

Select an option

Save njmube/418d17f96e76604caa8c to your computer and use it in GitHub Desktop.
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