Created
November 18, 2011 01:03
-
-
Save bdallen/1375179 to your computer and use it in GitHub Desktop.
Blah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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